Remove unnecessary assertions and suppress warnings #588
Annotations
9 errors
Run PHPStan:
src/di/Bind.php#L221
Call to function is_string() with string will always evaluate to true.
|
Run PHPStan:
tests/di/DependencyTest.php#L118
Parameter #2 $array of method PHPUnit\Framework\Assert::assertArrayHasKey() expects array|ArrayAccess, mixed given.
|
Run PHPStan:
tests/di/GrapherTest.php#L31
Call to function property_exists() with Ray\Di\FakeUntargetChild and 'val' will always evaluate to true.
|
Run PHPStan:
tests/di/InjectorTest.php#L187
Call to function assert() with true will always evaluate to true.
|
Run PHPStan:
tests/di/InjectorTest.php#L187
Instanceof between Ray\Di\FakeHandle and Ray\Di\FakeHandle will always evaluate to true.
|
Run PHPStan:
tests/di/InjectorTest.php#L245
Call to function property_exists() with Ray\Di\FakeBuiltin and 'injector' will always evaluate to true.
|
Run PHPStan:
tests/di/InjectorTest.php#L434
Cannot access offset 'returnSame' on mixed.
|
Run PHPStan:
tests/di/InjectorTest.php#L434
Cannot access offset 0 on mixed.
|
Run PHPStan
Process completed with exit code 1.
|
Loading