use benevolent union for stream_get_contents()
to prevent strict-rule errors
#21937
Annotations
12 errors
PHPStan
The operation was canceled.
|
PHPStan:
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan:
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan:
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan:
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan:
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan:
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan:
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan:
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan:
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
|
|
Loading