use benevolent union for stream_get_contents()
to prevent strict-rule errors
#21937
static-analysis.yml
on: pull_request
Generate baseline
1m 41s
Generate PHP baseline
1m 38s
Matrix: PHPStan with result cache
Matrix: PHPStan
Annotations
105 errors
PHPStan with result cache (8.3)
Process completed with exit code 2.
|
PHPStan with result cache (8.3):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan with result cache (8.3):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan with result cache (8.3):
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan with result cache (8.3):
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan with result cache (8.3):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan with result cache (8.3):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan with result cache (8.3):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan with result cache (8.3):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan with result cache (8.3):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
|
PHPStan (8.4, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan (8.4, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan (8.4, ubuntu-latest):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
Generate baseline
Process completed with exit code 1.
|
PHPStan with result cache (8.4)
Process completed with exit code 2.
|
PHPStan with result cache (8.4):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan with result cache (8.4):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan with result cache (8.4):
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan with result cache (8.4):
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan with result cache (8.4):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan with result cache (8.4):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan with result cache (8.4):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan with result cache (8.4):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan with result cache (8.4):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
|
PHPStan (8.2, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan (8.2, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan (8.2, ubuntu-latest):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan with result cache (8.2)
Process completed with exit code 2.
|
PHPStan with result cache (8.2):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan with result cache (8.2):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan with result cache (8.2):
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan with result cache (8.2):
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan with result cache (8.2):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan with result cache (8.2):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan with result cache (8.2):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan with result cache (8.2):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan with result cache (8.2):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
|
PHPStan (8.3, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan (8.3, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan (8.3, ubuntu-latest):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
|
PHPStan (8.1, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L425
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L423
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L136
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L131
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan (8.1, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan (8.1, ubuntu-latest):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
|
PHPStan (8.0, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L425
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L423
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L136
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest):
tests/PHPStan/Command/CommandHelperTest.php#L131
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan (8.0, ubuntu-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan (8.0, ubuntu-latest):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan (8.4, windows-latest)
The operation was canceled.
|
PHPStan (8.4, windows-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L443
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.4, windows-latest):
tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php#L441
Parameter #1 $string of function substr expects string, string|false given.
|
PHPStan (8.4, windows-latest):
tests/PHPStan/Command/CommandHelperTest.php#L146
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertStringContainsString() expects string, string|false given.
|
PHPStan (8.4, windows-latest):
tests/PHPStan/Command/CommandHelperTest.php#L139
Parameter #1 $message of method PHPUnit\Framework\Assert::fail() expects string, string|false given.
|
PHPStan (8.4, windows-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L98
Method PHPStan\Command\AnalyseApplicationIntegrationTest::runPath() should return string but returns string|false.
|
PHPStan (8.4, windows-latest):
tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php#L96
Parameter #3 $message of method PHPUnit\Framework\Assert::assertSame() expects string, string|false given.
|
PHPStan (8.4, windows-latest):
src/Testing/ErrorFormatterTestCase.php#L78
Parameter #1 $output of method PHPStan\Testing\ErrorFormatterTestCase::rtrimMultiline() expects string, string|false given.
|
PHPStan (8.4, windows-latest):
src/Process/ProcessPromise.php#L72
Parameter #1 $value of method React\Promise\Deferred<string>::resolve() expects string, string|false given.
|
PHPStan (8.4, windows-latest):
src/Command/AnalyseCommand.php#L759
Parameter #2 $contents of static method PHPStan\File\FileWriter::write() expects string, string|false given.
|
PHPStan (8.4, windows-latest)
Canceling since a higher priority waiting request for sa-stream exists
|
PHPStan (7.4, windows-latest)
The operation was canceled.
|
PHPStan (7.4, windows-latest)
Canceling since a higher priority waiting request for sa-stream exists
|
PHPStan (8.2, windows-latest)
The operation was canceled.
|
PHPStan (8.2, windows-latest)
Canceling since a higher priority waiting request for sa-stream exists
|
PHPStan (7.4, ubuntu-latest)
The operation was canceled.
|
PHPStan (7.4, ubuntu-latest)
Canceling since a higher priority waiting request for sa-stream exists
|
PHPStan (8.1, windows-latest)
The operation was canceled.
|
PHPStan (8.1, windows-latest)
Canceling since a higher priority waiting request for sa-stream exists
|
PHPStan (8.0, windows-latest)
The operation was canceled.
|
PHPStan (8.0, windows-latest)
Canceling since a higher priority waiting request for sa-stream exists
|
PHPStan (8.3, windows-latest)
The operation was canceled.
|
PHPStan (8.3, windows-latest)
Canceling since a higher priority waiting request for sa-stream exists
|
Static Analysis
Canceling since a higher priority waiting request for sa-stream exists
|