Remove unnecessary assertions and suppress warnings #588
static-analysis.yml
on: push
sa
/
PHPStan
21s
sa
/
Psalm
20s
sa
/
PHPMD
2m 23s
sa
/
ComposerRequireChecker
14s
Annotations
12 errors and 3 warnings
sa / Psalm:
src/di/Name.php#L154
MixedArgument: Argument 1 of substr cannot be mixed, expecting string
|
sa / Psalm:
src/di/Name.php#L157
MixedArgument: Argument 1 of trim cannot be false|mixed|string, expecting string
|
sa / Psalm
Process completed with exit code 1.
|
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#L31
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 / 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/
|
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/
|