Skip to content

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

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

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

Triggered via pull request September 26, 2025 15:49
Status Failure
Total duration 11m 24s
Artifacts 8

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
7s
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
7s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
integration-tests  /  PMMP Tests
1m 31s
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

43 errors and 1 notice
extension-tests / phpstan-mockery (8.5) make tests
Process completed with exit code 2.
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 - 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.
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 - Rector tests
Process completed with exit code 1.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Util/HtmlSanitizer.php#L61
Mixed variable in a `$this->purifiers[$hash]->...()` can skip important errors. Make sure the type is known
integration-tests / Integration - shopware/shopware: src/Core/Content/Cms/DataResolver/CmsSlotsDataResolver.php#L232
Parameter #1 $array (array<array{}>) to function array_filter contains falsy values only, the result will always be an empty array.
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:8a2e6528ec3498cdb8e49abf8251d96db96887eeeb0a1f21214e0b1360f59c77
baselines-doctrine-dbal-baseline.neon
713 Bytes
sha256:4b8e5228ea80dcee43616fc56516d30cc977b9f61a42bf7e69ba6ddebfa0248c
baselines-efabrica-phpstan-latte-baseline.neon
1.54 KB
sha256:7806099bbac530dce97b7d280bf75e8bbe70a02683c4bb7010fe12684fc369d0
baselines-rector-baseline.neon
714 Bytes
sha256:795e16df8eb1301a214ff7bbb84b940cf1a0a0872434452d0eeb839f7488c1a8
baselines-shipmonk-dead-code-detector-baseline.neon
442 Bytes
sha256:e4a2d9650af271e8aab65cb97f9b58e9c3c7ec5691741e93a979a7701923d965
baselines-shopware-baseline.neon
1.47 KB
sha256:510274c9e8af5ef1eb3edeeed6949c5b82ff65d441e661fd906201b3bd2d3fd2
phar-file
3.67 MB
sha256:1dbfa1995098a5f579c697bc84fa2bfd1dee87e21eb3580cd29f82e144aab8b6
phar-file-checksum
3.67 MB
sha256:703e0c547eac5754ba530e661e4166246e236000cc347c5069daf514925630f4