Skip to content

Fix "offset might not exist" false-positives when offset is a expression #21986

Fix "offset might not exist" false-positives when offset is a expression

Fix "offset might not exist" false-positives when offset is a expression #21986

Triggered via pull request September 26, 2025 15:40
Status Cancelled
Total duration 9m 0s
Artifacts 9

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
6s
integration-tests / Check PHAR checksum
Download base SHA PHAR
0s
Download base SHA PHAR
extension-tests  /  Check PHAR checksum
5s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
6s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
integration-tests  /  PMMP Tests
1m 24s
integration-tests / PMMP Tests
Matrix: integration-tests / integration-tests
Checksum PHAR
0s
Checksum PHAR
PHAR Prefix Diff
0s
PHAR Prefix Diff
Matrix: extension-tests / tests-extensions
Matrix: other-tests / Other Tests
integration-tests  /  Integration - Update baselines
0s
integration-tests / Integration - Update baselines
Fit to window
Zoom out
Zoom in

Annotations

51 errors and 1 notice
integration-tests / Integration - bladestan/bladestan
Process completed with exit code 1.
integration-tests / Integration - bladestan/bladestan: src/TemplateCompiler/PHPStan/FileAnalyserProvider.php#L59
Method Bladestan\TemplateCompiler\PHPStan\FileAnalyserProvider::provide() throws checked exception PHPStan\DependencyInjection\MissingServiceException but it's missing from the PHPDoc `@throws` tag.
integration-tests / Integration - bladestan/bladestan: src/NodeAnalyzer/ViewVariableAnalyzer.php#L50
Method Bladestan\NodeAnalyzer\ViewVariableAnalyzer::resolve() throws checked exception ValueError but it's missing from the PHPDoc `@throws` tag.
integration-tests / Integration - bladestan/bladestan: src/Compiler/LivewireTagCompiler.php#L116
Dead catch - RuntimeException is never thrown in the try block.
integration-tests / Integration - efabrica-team/phpstan-latte: src/LatteContext/Finder/ComponentFinder.php#L100
Method Efabrica\PHPStanLatte\LatteContext\Finder\ComponentFinder::find() should return array<Efabrica\PHPStanLatte\Template\Component> but returns mixed.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Error/TableErrorFormatter.php#L56
Parameter #3 of function sprintf is expected to be int by placeholder #2 ("%d"), string given.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Compiler/NodeVisitor/NodeVisitorStorage.php#L33
Property Efabrica\PHPStanLatte\Compiler\NodeVisitor\NodeVisitorStorage::$nodeVisitors (array<string, array<int, array<PhpParser\NodeVisitor>>>) does not accept array<string, mixed>.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Collector/Finder/ResolvedNodeFinder.php#L44
Property Efabrica\PHPStanLatte\Collector\Finder\ResolvedNodeFinder::$collectedResolvedNodes (array<string, array<Efabrica\PHPStanLatte\Collector\CollectedData\CollectedResolvedNode>>) does not accept array<string, mixed>.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Analyser/LatteContextCollectorRegistry.php#L47
Method Efabrica\PHPStanLatte\Analyser\LatteContextCollectorRegistry::getCollectorsForNode() should return array<Efabrica\PHPStanLatte\LatteContext\Collector\AbstractLatteContextCollector> but returns mixed.
extension-tests / phpstan-mockery (8.5) make tests
Process completed with exit code 2.
integration-tests / Integration - doctrine/dbal
Process completed with exit code 1.
integration-tests / Integration - doctrine/dbal: src/Driver/IBMDB2/Statement.php#L113
Offset 'uri' might not exist on array{timed_out: bool, blocked: bool, eof: bool, unread_bytes: int, stream_type: string, wrapper_type: string, wrapper_data: mixed, mode: string, ...}.
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Provider/SymfonyUsageProvider.php#L443
Property ShipMonk\PHPStan\DeadCode\Provider\SymfonyUsageProvider::$dicCalls (array<string, array<string, true>>) does not accept non-empty-array<string, mixed>.
integration-tests / Integration - doctrine/orm
Process completed with exit code 1.
integration-tests / Integration - doctrine/orm: src/Tools/SchemaTool.php#L455
Cannot access offset 'version' on array{}|bool|int|null.
integration-tests / Integration - Rector tests
Process completed with exit code 1.
integration-tests / PMMP Tests
Process completed with exit code 1.
integration-tests / PMMP Tests: src/MemoryDump.php#L227
Cannot assign offset non-empty-string to list<mixed>|string.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - efabrica-team/phpstan-latte tests
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal
The operation was canceled.
integration-tests / Integration - drupal/drupal
Canceling since a higher priority waiting request for phar-refs/pull/4372/merge exists
integration-tests / Integration - shopware/shopware
The operation was canceled.
integration-tests / Integration - shopware/shopware
Canceling since a higher priority waiting request for phar-refs/pull/4372/merge exists
Compile PHAR
Canceling since a higher priority waiting request for phar-refs/pull/4372/merge exists
Compile PHAR
Canceling since a higher priority waiting request for phar-refs/pull/4372/merge exists
other-tests / Other Tests (7.4, windows-latest, cd e2e/name-conflict composer install cp ../../phpstan vendor/p...
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677

Artifacts

Produced during runtime
Name Size Digest
baselines-bladestan-baseline.neon
625 Bytes
sha256:71d9e8ebf232f490c15ace814f238d022523182e55f19b4d890b96b4f70bf156
baselines-doctrine-dbal-baseline.neon
713 Bytes
sha256:69c95996a97b2ec8c737bb153551d490b759469970b9a15ed04e293da54ccb21
baselines-doctrine-orm-baseline.neon
1.87 KB
sha256:ae4815146fc3ef62ef1d0d66a5ec64f50e8922671ab0f701819f9e97076f491d
baselines-efabrica-phpstan-latte-baseline.neon
1.54 KB
sha256:ace16e3e7ff32b55e7d49baab8321229879092f6092c428e18b369596c673e30
baselines-rector-baseline.neon
714 Bytes
sha256:22e17fd79189aaa3c6c97aaf0f3b34f9dd95f5cac2ae80168e99d1c5094e838e
baselines-shipmonk-dead-code-detector-baseline.neon
442 Bytes
sha256:5ba05db974aef8f677d8cbb1c989dfc9afd5b8628e5a67ec385774f5701cbece
phar-file
3.67 MB
sha256:d8f5bfcb716f58e5216e565de7753ee928a7cb25a4984ada071ca012bcc83343
phar-file-checksum
3.67 MB
sha256:a3ad8ef5f3dd391ed5a8f880635ddbb717c7c34655715bfd20d5c9a25b2ab51f
pocketmine-ng-baseline.neon
460 Bytes
sha256:982535138f48b760084a898b28fce68c7edb2401e7c4558d01397afb43633b5d