Skip to content

Update psalm, infection, mago, ... #2745

Update psalm, infection, mago, ...

Update psalm, infection, mago, ... #2745

Triggered via pull request January 31, 2025 06:10
Status Success
Total duration 33s
Artifacts

coding-standards.yml

on: pull_request
coding standards
20s
coding standards
Fit to window
Zoom out
Zoom in

Annotations

10 warnings and 10 notices
strictness/require-return-type: examples/tcp/basic-http-server.php#L44
Arrow function is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to the arrow function.
strictness/require-return-type: src/Psl/Result/reflect.php#L26
Arrow function is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to the arrow function.
strictness/require-return-type: src/Psl/Regex/matches.php#L22
Arrow function is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to the arrow function.
strictness/require-return-type: tests/unit/Async/RunTest.php#L17
Arrow function is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to the arrow function.
strictness/require-return-type: tests/unit/Async/RunTest.php#L18
Arrow function is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to the arrow function.
strictness/require-return-type: tests/unit/Async/RunTest.php#L19
Arrow function is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to the arrow function.
strictness/require-return-type: src/Psl/Iter/random.php#L21
Function `random` is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to function `random`.
strictness/require-parameter-type: src/Psl/Dict/filter_nulls.php#L29
Parameter `$value` is missing a type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a type hint to parameter `$value`.
strictness/require-parameter-type: tests/unit/Math/MaxTest.php#L15
Parameter `$expected` is missing a type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a type hint to parameter `$expected`.
strictness/require-return-type: tests/unit/Dict/DropWhileTest.php#L25
Arrow function is missing a return type hint. Type hints improve code readability and help prevent type-related errors. Help: Consider adding a return type hint to the arrow function.
naming/function: tests/static-analysis/Type/converted.php#L14
Function name `testsPurity` should be in snake case. The function name `testsPurity` does not follow snake naming convention. Help: Consider renaming it to `tests_purity` to adhere to the naming convention.
naming/interface: src/Psl/Comparison/Equable.php#L10
interface name `Equable` should be suffixed with `Interface`. The interface name `Equable` does not follow PSR naming convention. Help: Consider renaming it to `EquableInterface` to adhere to the naming convention.
naming/class: tests/unit/Type/TypeTest.php#L18
Abstract class name `TypeTest` should be prefixed with `Abstract`. The abstract class name `TypeTest` does not follow PSR naming convention. Help: Consider renaming it to `AbstractTypeTest` to adhere to the naming convention.
best-practices/no-empty-loop: tests/unit/Range/FromRangeTest.php#L99
Loop body is empty Help: Consider removing this loop or adding meaningful logic to its body.
naming/class: tests/benchmark/Type/GenericTypeBench.php#L13
Abstract class name `GenericTypeBench` should be prefixed with `Abstract`. The abstract class name `GenericTypeBench` does not follow PSR naming convention. Help: Consider renaming it to `AbstractGenericTypeBench` to adhere to the naming convention.
naming/interface: src/Psl/Comparison/Comparable.php#L12
interface name `Comparable` should be suffixed with `Interface`. The interface name `Comparable` does not follow PSR naming convention. Help: Consider renaming it to `ComparableInterface` to adhere to the naming convention.
naming/class: tests/static-analysis/Comparison/comparable.php#L21
Abstract class name `Size` should be prefixed with `Abstract`. The abstract class name `Size` does not follow PSR naming convention. Help: Consider renaming it to `AbstractSize` to adhere to the naming convention.
naming/trait: tests/unit/Math/FloatAsserts.php#L10
Trait name `FloatAsserts` should be suffixed with `Trait`. The trait name `FloatAsserts` does not follow PSR naming convention. Help: Consider renaming it to `FloatAssertsTrait` to adhere to the naming convention.
naming/class: src/Psl/Type/Type.php#L14
Abstract class name `Type` should be prefixed with `Abstract`. The abstract class name `Type` does not follow PSR naming convention. Help: Consider renaming it to `AbstractType` to adhere to the naming convention.
naming/class: src/Psl/Encoding/Base64/Internal/Base64.php#L25
Abstract class name `Base64` should be prefixed with `Abstract`. The abstract class name `Base64` does not follow PSR naming convention. Help: Consider renaming it to `AbstractBase64` to adhere to the naming convention.