Skip to content

Fix #757: Incorrect warning when using functions that return a reference #24689

Fix #757: Incorrect warning when using functions that return a reference

Fix #757: Incorrect warning when using functions that return a reference #24689

Triggered via pull request February 12, 2026 14:51
Status Failure
Total duration 9m 32s
Artifacts 8

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
7s
integration-tests / Check PHAR checksum
Download base SHA PHAR
Download base SHA PHAR
extension-tests  /  Check PHAR checksum
6s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
5s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
integration-tests  /  PMMP Tests
1m 11s
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

30 errors and 3 warnings
integration-tests / Integration - shipmonk/phpstan-rules tests
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Internal error: PHPStan\Analyser\NodeScopeResolver::processExprNode(): Argument #4 ($storage) must be of type PHPStan\Analyser\ExpressionResultStorage, Closure given, called in /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/vendor/shipmonk/phpstan-rules/src/Rule/ForbidCheckedExceptionInCallableRule.php on line 239 while analysing file /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Compatibility/BackwardCompatibilityChecker.php Run PHPStan with -v option and post the stack trace to: https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
integration-tests / PMMP Tests
Process completed with exit code 1.
integration-tests / PMMP Tests: tools/generate-item-upgrade-schema.php#L80
Argument of an invalid type mixed supplied for foreach, only iterables are supported.
integration-tests / Integration - laravel/framework
Process completed with exit code 1.
integration-tests / Integration - laravel/framework: src/Illuminate/Http/Client/PendingRequest.php#L1081
Variable $shouldRetry on left side of ?? always exists and is always null.
integration-tests / Integration - laravel/framework: src/Illuminate/Foundation/Console/RouteListCommand.php#L406
Variable $action on left side of ?? always exists and is not nullable.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware: src/Core/System/Snippet/Command/Util/CountryAgnosticFileLinter.php#L87
Offset 'language' might not exist on array{0?: string, domain?: non-empty-string|null, 1?: non-empty-string|null, locale?: non-falsy-string|null, 2?: non-falsy-string|null, language?: non-falsy-string|null, 3?: non-falsy-string|null, script?: non-falsy-string|null, ...}.
integration-tests / Integration - shopware/shopware: src/Core/System/Snippet/Command/Util/CountryAgnosticFileLinter.php#L79
Parameter #3 $subject of function str_replace expects array<string>|string, string|null given.
integration-tests / Integration - shopware/shopware: src/Core/System/Snippet/Command/Util/CountryAgnosticFileLinter.php#L79
Offset 'locale' might not exist on array{0?: string, domain?: non-empty-string|null, 1?: non-empty-string|null, locale?: non-falsy-string|null, 2?: non-falsy-string|null, language?: non-falsy-string|null, 3?: non-falsy-string|null, script?: non-falsy-string|null, ...}.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Script/Debugging/ScriptTraces.php#L107
Parameter #1 $array of function array_sum expects an array of values castable to number, list given.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/Tax/Struct/CalculatedTaxCollection.php#L60
Parameter #1 $array of function array_sum expects an array of values castable to number, array<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/Price/Struct/PriceCollection.php#L100
Parameter #1 $array of function array_sum expects an array of values castable to number, array<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/Price/Struct/PriceCollection.php#L93
Parameter #1 $array of function array_sum expects an array of values castable to number, array<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/Delivery/Struct/DeliveryPositionCollection.php#L113
Parameter #1 $array of function array_sum expects an array of values castable to number, array<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/Delivery/Struct/DeliveryPositionCollection.php#L83
Parameter #1 $array of function array_sum expects an array of values castable to number, array<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/Delivery/Struct/DeliveryPositionCollection.php#L76
Parameter #1 $array of function array_sum expects an array of values castable to number, array<mixed> given.
other-tests / Other Tests (7.4, windows-latest, cd e2e/name-conflict composer install cp ../../phpstan vendor/p...
Environment variable 'INPUT_GITHUB_CONTEXT' exceeds the maximum supported length. Environment variable length: 33421 , Maximum supported length: 32766
other-tests / Other Tests (7.4, windows-latest, cd e2e/name-conflict composer install cp ../../phpstan vendor/p...
Environment variable 'INPUT_GITHUB_CONTEXT' exceeds the maximum supported length. Environment variable length: 33421 , Maximum supported length: 32766
other-tests / Other Tests (7.4, windows-latest, cd e2e/name-conflict composer install cp ../../phpstan vendor/p...
Environment variable 'INPUT_GITHUB_CONTEXT' exceeds the maximum supported length. Environment variable length: 33421 , Maximum supported length: 32766

Artifacts

Produced during runtime
Name Size Digest
baselines-drupal-baseline.neon
1.05 KB
sha256:50549fc2c273b4558f56812d8416c1b5323b219d4cff4813d005d318af5afe35
baselines-laravel-baseline.neon
384 Bytes
sha256:084c6132c8bd20bdd1eaa766edd4e4f5a58ed097dfd58ec9957f452156a533c4
baselines-rector-baseline.neon
600 Bytes
sha256:af016bdff21c8645aee3e17f36f05b884aef2034088a9d0603ec61520dbbbced
baselines-shipmonk-dead-code-detector-baseline.neon
228 Bytes
sha256:25cb570e56ec1cd23ceac896582c1c173f5cae9cd7de2513d837a639d3dd6c7e
baselines-shopware-baseline.neon
9.81 KB
sha256:aba9107b67ba3fdf00385946bc34a228be5856c7bfed14e1f26b144f67315f0c
phar-file
3.73 MB
sha256:d134c3f0ebe63e61294bccbe8a22345d78bb3f53a0593c43b08c92663f9fedc2
phar-file-checksum
3.73 MB
sha256:ea957719560ee3759e6dab5a6609b59d7d8fe846e2a7cda210f990fdedf0511d
pocketmine-ng-baseline.neon
342 Bytes
sha256:ffe8680c6b807001937ad618365c584c9b70e729ad77cb053e0b8646f22a076e