Skip to content

Fix phpstan/phpstan#11100: Possibly impure call to function array_map() in pure method - false positive #25931

Fix phpstan/phpstan#11100: Possibly impure call to function array_map() in pure method - false positive

Fix phpstan/phpstan#11100: Possibly impure call to function array_map() in pure method - false positive #25931

Triggered via pull request March 10, 2026 16:32
Status Failure
Total duration 12m 37s
Artifacts 11

phar.yml

on: pull_request
Compiler Tests
3m 6s
Compiler Tests
integration-tests  /  Check PHAR checksum
11s
integration-tests / Check PHAR checksum
Download base SHA PHAR
Download base SHA PHAR
extension-tests  /  Check PHAR checksum
10s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
13s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
integration-tests  /  PMMP Tests
1m 17s
integration-tests / PMMP Tests
Matrix: integration-tests / integration-tests
Checksum PHAR
Checksum PHAR
PHAR Prefix Diff
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

55 errors and 3 warnings
extension-tests / phpstan-beberlei-assert (8.3) make tests
Expects action path `action.yml` or `action.yaml` in the action dir: /home/runner/work/_actions/Wandalen/download-artifact/
extension-tests / phpstan-beberlei-assert (8.3) make tests
Process returned exit code 128 Launched as "git clone https://github.com/actions/download-artifact . --config core.autocrlf=false" Launched at "/home/runner/work/_actions/Wandalen/download-artifact" -> Stderr - Cloning into '.'... - fatal: unable to access 'https://github.com/actions/download-artifact/': The requested URL returned error: 403 - ' -< Stderr
extension-tests / phpdoc-parser (8.2) make tests
Expects action path `action.yml` or `action.yaml` in the action dir: /home/runner/work/_actions/Wandalen/download-artifact/
extension-tests / phpdoc-parser (8.2) make tests
Process returned exit code 128 Launched as "git clone https://github.com/actions/download-artifact . --config core.autocrlf=false" Launched at "/home/runner/work/_actions/Wandalen/download-artifact" -> Stderr - Cloning into '.'... - fatal: unable to access 'https://github.com/actions/download-artifact/': The requested URL returned error: 403 - ' -< Stderr
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Debug/DebugUsagePrinter.php#L59
Method ShipMonk\PHPStan\DeadCode\Debug\DebugUsagePrinter::__construct() throws checked exception PHPStan\DependencyInjection\ParameterNotFoundException but it's missing from the PHPDoc `@throws` tag.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Debug/DebugUsagePrinter.php#L59
Method ShipMonk\PHPStan\DeadCode\Debug\DebugUsagePrinter::__construct() throws checked exception PHPStan\DependencyInjection\ParameterNotFoundException but it's missing from the PHPDoc `@throws` tag.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Debug/DebugUsagePrinter.php#L59
Method ShipMonk\PHPStan\DeadCode\Debug\DebugUsagePrinter::__construct() throws checked exception PHPStan\DependencyInjection\ParameterNotFoundException but it's missing from the PHPDoc `@throws` tag.
integration-tests / Integration - doctrine/dbal
Process completed with exit code 1.
integration-tests / Integration - doctrine/dbal: src/Driver/PDO/SQLSrv/Driver.php#L98
Only booleans are allowed in a ternary operator condition, mixed given.
integration-tests / Integration - doctrine/orm
Process completed with exit code 1.
integration-tests / Integration - doctrine/orm: src/Mapping/ClassMetadata.php#L1449
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\AssociationMapping::fromMappingArray() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
integration-tests / Integration - doctrine/orm: src/Mapping/ClassMetadata.php#L1448
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ManyToManyOwningSideMapping::fromMappingArrayAndNamingStrategy() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
integration-tests / Integration - doctrine/orm: src/Mapping/ClassMetadata.php#L1440
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\OneToManyAssociationMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
integration-tests / Integration - doctrine/orm: src/Mapping/ClassMetadata.php#L1432
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ToOneOwningSideMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
integration-tests / Integration - doctrine/orm: src/Mapping/ClassMetadata.php#L1428
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ToOneInverseSideMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
integration-tests / Integration - doctrine/orm: src/Mapping/ClassMetadata.php#L1422
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ToOneOwningSideMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
integration-tests / Integration - efabrica-team/phpstan-latte
Process completed with exit code 1.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Resolver/ValueResolver/ValueResolver.php#L92
Parameter #2 $array of function implode expects array<string>, list<mixed> given.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Compiler/Compiler/Latte3Compiler.php#L35
Call to function is_array() with list<Latte\Extension> will always evaluate to true.
integration-tests / PMMP Tests: src/item/Item.php#L741
Cannot cast mixed to int.
integration-tests / PMMP Tests: src/item/Item.php#L740
Cannot cast mixed to int.
integration-tests / PMMP Tests: src/item/Item.php#L739
Cannot cast mixed to int.
integration-tests / PMMP Tests: src/command/defaults/WhitelistCommand.php#L92
Parameter #2 $array of function implode expects array<string>, list<mixed> given.
integration-tests / PMMP Tests: src/command/defaults/WhitelistCommand.php#L91
Parameter #1 $array of function sort expects an array of values castable to string, array<mixed> given.
integration-tests / PMMP Tests: src/command/defaults/TeleportCommand.php#L101
Casting to *NEVER* something that's already *NEVER*.
integration-tests / PMMP Tests: src/command/defaults/TeleportCommand.php#L100
Casting to *NEVER* something that's already *NEVER*.
integration-tests / PMMP Tests: src/Server.php#L1192
Cannot cast mixed to string.
integration-tests / PMMP Tests: src/Server.php#L758
Ignored error pattern #^Cannot cast mixed to string\.$# (cast.string) in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Server.php is expected to occur 1 time, but occurred 2 times.
integration-tests / PMMP Tests: build/generate-block-serializer-consts.php#L181
Parameter #1 $array of function sort expects an array of values castable to string, array<mixed> given.
integration-tests / Integration - Roave/BetterReflection
Process completed with exit code 1.
integration-tests / Integration - Roave/BetterReflection: src/Util/FileHelper.php#L46
Offset 2 might not exist on non-empty-list{0?: string, 1?: non-empty-string, 2?: non-empty-string}.
integration-tests / Integration - Roave/BetterReflection: src/Util/FileHelper.php#L46
Offset 1 might not exist on non-empty-list{0?: string, 1?: non-empty-string, 2?: non-empty-string}.
integration-tests / Integration - laravel/framework
Process completed with exit code 1.
integration-tests / Integration - laravel/framework: src/Illuminate/View/Compilers/ComponentTagCompiler.php#L345
No error with identifier variable.undefined is reported on line 345.
integration-tests / Integration - laravel/framework: src/Illuminate/View/Compilers/ComponentTagCompiler.php#L344
No error with identifier variable.undefined is reported on line 344.
integration-tests / Integration - laravel/framework: src/Illuminate/View/Compilers/ComponentTagCompiler.php#L343
No error with identifier variable.undefined is reported on line 343.
integration-tests / Integration - laravel/framework: src/Illuminate/Mail/Mailable.php#L268
No error with identifier callable.nonNativeMethod is reported on line 268.
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 - drupal/drupal
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal: core/tests/Drupal/Tests/PerformanceTestTrait.php (in context of class Drupal/FunctionalJavascriptTests/PerformanceTestBase)#L166
Offset 'delete' on array{}|array{get: non-empty-array<*NEVER*, non-empty-list<*NEVER*>>} in isset() does not exist.
integration-tests / Integration - shopware/shopware: src/Storefront/Controller/ContextController.php#L126
Offset 'host' might not exist on non-empty-array{scheme?: string, host?: string, port?: int<0, 65535>, user?: string, pass?: string, path?: string, query?: string, fragment?: string}.
integration-tests / Integration - shopware/shopware: src/Core/Installer/Controller/FinishController.php#L72
Offset 'host' might not exist on non-empty-array{scheme?: string, host?: string, port?: int<0, 65535>, user?: string, pass?: string, path?: string, query?: string, fragment?: string}.
integration-tests / Integration - shopware/shopware: src/Core/Framework/DataAbstractionLayer/Search/Criteria.php#L499
Parameter #1 $ids of class Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria constructor expects array<string>|null, array<array<string>|string> given.
integration-tests / Integration - shopware/shopware: src/Core/DevOps/Test/AnnotationTagTester.php#L151
Offset 4 might not exist on non-empty-list{0?: string, 1?: non-empty-string|null, 2?: string|null, 3?: non-empty-string|null, 4?: string|null}.
integration-tests / Integration - shopware/shopware: src/Core/DevOps/Test/AnnotationTagTester.php#L151
Offset 3 might not exist on non-empty-list{0?: string, 1?: non-empty-string|null, 2?: string|null, 3?: non-empty-string|null, 4?: string|null}.
integration-tests / Integration - shopware/shopware: src/Core/DevOps/Test/AnnotationTagTester.php#L150
Offset 2 might not exist on non-empty-list{0?: string, 1?: non-empty-string|null, 2?: string|null, 3?: non-empty-string|null, 4?: string|null}.
integration-tests / Integration - shopware/shopware: src/Core/DevOps/Test/AnnotationTagTester.php#L150
Offset 1 might not exist on non-empty-list{0?: string, 1?: non-empty-string|null, 2?: string|null, 3?: non-empty-string|null, 4?: string|null}.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/LineItemFactoryRegistry.php#L99
Parameter #2 $data of method Shopware\Core\Checkout\Cart\LineItemFactoryHandler\LineItemFactoryInterface::update() expects array<string, mixed>, array<int|string, mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Checkout/Cart/LineItemFactoryRegistry.php#L54
Parameter #1 $data of method Shopware\Core\Checkout\Cart\LineItemFactoryHandler\LineItemFactoryInterface::create() expects array<string, mixed>, array<int|string, 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: 33844 , 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: 33844 , 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: 33844 , Maximum supported length: 32766

Artifacts

Produced during runtime
Name Size Digest
baselines-better-reflection-baseline.neon Expired
363 Bytes
sha256:875b940c08fdf88487a256b0371080cb225759f2bd56317fe987de5d3bdd76ca
baselines-doctrine-dbal-baseline.neon Expired
1010 Bytes
sha256:42d3ab810d83a8343ecaa031cd17fa37e02e9e856c3cc0e1ce6cf8c684c9e61c
baselines-doctrine-orm-baseline.neon Expired
1.16 KB
sha256:d0f1fd5d9bffbe295315cd6608d73a30d6167c3559d9fd6152a2865f33cbec3f
baselines-drupal-baseline.neon Expired
1.23 KB
sha256:f8aa47897cad88e8c6a76957c375aadec02ea858cf85621b433acae538f8a6e7
baselines-efabrica-phpstan-latte-baseline.neon Expired
706 Bytes
sha256:2bc9df668b65000c17e6efd78108583ff22327ada700e6ece6716a93bca45524
baselines-laravel-baseline.neon Expired
384 Bytes
sha256:8e348c6d513a35b4624cebb0bca68d775975c201b172615bebe708892afcf437
baselines-shipmonk-dead-code-detector-baseline.neon Expired
427 Bytes
sha256:022dbcf959b4f17ed71408b840c97349a247f29b3c5d8e65d2f5f4a158b2fa05
baselines-shopware-baseline.neon Expired
10.5 KB
sha256:bdabfd5c33c593f2340b6233aac4e7bf61831dbe5b04512e09a405f96a331724
phar-file Expired
3.76 MB
sha256:417e602541984a25e4bb2eef55df5034e79c108727a2b7669a5cf432948ff1da
phar-file-checksum Expired
3.76 MB
sha256:4da33e84aa50c5dcc24deecb328a40fb016bedc4a5920f6e9be8b21a2dcf0fd4
pocketmine-ng-baseline.neon Expired
1.23 KB
sha256:14869f6a6896cbe7f35fdeb80b9af2e7a6b3cb6b4b0e6a89233c8471eb4df426