Skip to content

Fix #11441: @phpstan-assert isn't working with Union #24709

Fix #11441: @phpstan-assert isn't working with Union

Fix #11441: @phpstan-assert isn't working with Union #24709

Triggered via pull request February 12, 2026 15:20
Status Failure
Total duration 11m 32s
Artifacts 9

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
7s
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 10s
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

39 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 / Integration - doctrine/orm
Process completed with exit code 1.
integration-tests / Integration - doctrine/orm: src/Utility/PersisterHelper.php#L147
Call to method Doctrine\ORM\Mapping\AssociationMapping::isToOneOwningSide() will always evaluate to true.
integration-tests / Integration - doctrine/orm: src/UnitOfWork.php#L2573
Call to method Doctrine\ORM\Mapping\AssociationMapping::isToMany() will always evaluate to true.
integration-tests / Integration - doctrine/orm: src/UnitOfWork.php#L2473
Call to method Doctrine\ORM\Mapping\AssociationMapping::isToOneOwningSide() will always evaluate to true.
integration-tests / Integration - doctrine/orm: src/Query/SqlWalker.php#L989
Call to method Doctrine\ORM\Mapping\AssociationMapping::isManyToMany() will always evaluate to true.
integration-tests / Integration - doctrine/orm: src/Query/SqlWalker.php#L953
Call to method Doctrine\ORM\Mapping\AssociationMapping::isToOneOwningSide() will always evaluate to true.
integration-tests / Integration - doctrine/orm: src/Persisters/Entity/BasicEntityPersister.php#L1751
Call to method Doctrine\ORM\Mapping\AssociationMapping::isToOneOwningSide() will always evaluate to true.
integration-tests / Integration - doctrine/orm: src/Persisters/Entity/BasicEntityPersister.php#L1322
Call to method Doctrine\ORM\Mapping\AssociationMapping::isToMany() will always evaluate to true.
integration-tests / Integration - doctrine/orm: src/Cache/DefaultEntityHydrator.php#L78
Call to method Doctrine\ORM\Mapping\AssociationMapping::isToOneOwningSide() will always evaluate to true.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
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 - 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: 33582 , 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: 33582 , 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: 33582 , Maximum supported length: 32766

Artifacts

Produced during runtime
Name Size Digest
baselines-doctrine-orm-baseline.neon
926 Bytes
sha256:a0d7c64c73a68c92868c14f8e56de2754c014edc16e1300eaedb13c95399c1f2
baselines-drupal-baseline.neon
1.05 KB
sha256:5a20d91add238faa33ce07d1b100dd39a9491e551f688bd6c04b4c3745d99a94
baselines-laravel-baseline.neon
384 Bytes
sha256:6da91fc3f35711a6a7a46d264b7032db8beb57aa8c5645aa469978018dc20223
baselines-rector-baseline.neon
600 Bytes
sha256:b4f7ef4c8f90ac699d6faedf50e3e87d4cccd5ef395b54ba6152d1f5d2d590b9
baselines-shipmonk-dead-code-detector-baseline.neon
228 Bytes
sha256:c9274d27eaa1f7689c3abe27c7b675361e3ccc28ff3c197e7a1e9dbc87176cb2
baselines-shopware-baseline.neon
9.81 KB
sha256:ac8f934f94652fe0d81644bcfc8f5bfa31d0cebc46ca46f3b60e4fde6ebb9c78
phar-file
3.73 MB
sha256:6ab7187220a9ced56536a11c58354e6ff7be803c5e44d81a7957a9fbc4a37878
phar-file-checksum
3.73 MB
sha256:ed173258bc80722338ae84ace6186043cbd0694eca2e6a1a20432cebdbd51bd3
pocketmine-ng-baseline.neon
342 Bytes
sha256:14f3d7dccd62c7d999eea8cea9c0d6b8a785403f3e9b03f6575ce41d82c350aa