Skip to content

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

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

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

Triggered via pull request September 27, 2025 11:41
Status Failure
Total duration 11m 6s
Artifacts 5

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
4s
integration-tests / Check PHAR checksum
Download base SHA PHAR
0s
Download base SHA PHAR
extension-tests  /  Check PHAR checksum
6s
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 26s
integration-tests / PMMP Tests
Matrix: integration-tests / integration-tests
Checksum PHAR
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

29 errors and 1 notice
extension-tests / phpstan-mockery (8.5) make tests
Process completed with exit code 2.
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 tests
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal: core/includes/theme.inc#L1470
Variable $items might not be defined.
integration-tests / Integration - drupal/drupal: core/includes/theme.inc#L1439
Ignored error pattern #^Variable \$items might not be defined\.$# (variable.undefined) in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/core/includes/theme.inc is expected to occur 1 time, but occurred 2 times.
integration-tests / Integration - shopware/shopware
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Adapter/Database/MySQLFactory.php#L102
Parameter #1 $params of static method Doctrine\DBAL\DriverManager::getConnection() expects array{application_name?: string, charset?: string, dbname?: string, defaultTableOptions?: array<string, mixed>, driver?: 'ibm_db2'|'mysqli'|'oci8'|'pdo_mysql'|'pdo_oci'|'pdo_pgsql'|'pdo_sqlite'|'pdo_sqlsrv'|'pgsql'|'sqlite3'|'sqlsrv', driverClass?: class-string<Doctrine\DBAL\Driver>, driverOptions?: array<mixed>, host?: string, ...}, non-empty-array<literal-string&non-falsy-string, array|bool|int|string> given.
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
572 Bytes
sha256:de3d8ac9747ac1835016fa6849d39d512bdff321a2be9b536709c2d99773d174
baselines-drupal-baseline.neon
430 Bytes
sha256:f801f5a4fdcabe3124f089d317f419676e6b1a160f65628b4106b35139b9d2ad
baselines-shopware-baseline.neon
1.59 KB
sha256:62785f1b5e381a44217b32e0e65e993b891a107deb9dd982ecc2cc477a6639c4
phar-file
3.68 MB
sha256:5f958a34408568f44578bc9aaf139d2ca43eec18dbb42303931ad64dbe7032a8
phar-file-checksum
3.67 MB
sha256:670517c1763be3368c9ae07f88e8cc4d273b407a790e2f279333af554ad3a904