Skip to content

Remove unused assert and is_object function imports #590

Remove unused assert and is_object function imports

Remove unused assert and is_object function imports #590

Triggered via push November 29, 2024 13:49
Status Failure
Total duration 55s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 3 warnings
sa / PHPStan: src/di/Bind.php#L221
Call to function is_string() with string will always evaluate to true.
sa / PHPStan: tests/di/DependencyTest.php#L118
Parameter #2 $array of method PHPUnit\Framework\Assert::assertArrayHasKey() expects array|ArrayAccess, mixed given.
sa / PHPStan: tests/di/GrapherTest.php#L30
Call to function property_exists() with Ray\Di\FakeUntargetChild and 'val' will always evaluate to true.
sa / PHPStan: tests/di/InjectorTest.php#L187
Call to function assert() with true will always evaluate to true.
sa / PHPStan: tests/di/InjectorTest.php#L187
Instanceof between Ray\Di\FakeHandle and Ray\Di\FakeHandle will always evaluate to true.
sa / PHPStan: tests/di/InjectorTest.php#L245
Call to function property_exists() with Ray\Di\FakeBuiltin and 'injector' will always evaluate to true.
sa / PHPStan: tests/di/InjectorTest.php#L434
Cannot access offset 'returnSame' on mixed.
sa / PHPStan: tests/di/InjectorTest.php#L434
Cannot access offset 0 on mixed.
sa / PHPStan
Process completed with exit code 1.
sa / Psalm: src/di/Name.php#L153
MixedArgument: Argument 1 of substr cannot be mixed, expecting string
sa / Psalm: src/di/Name.php#L156
MixedArgument: Argument 1 of trim cannot be false|mixed|string, expecting string
sa / Psalm
Process completed with exit code 1.
sa / PHPMD
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
sa / ComposerRequireChecker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
sa / Psalm
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/