Skip to content

CallToFunctionStatementWithoutSideEffectsRule checks the purity of array_filter(), array_map(), and array_reduce() #15736

CallToFunctionStatementWithoutSideEffectsRule checks the purity of array_filter(), array_map(), and array_reduce()

CallToFunctionStatementWithoutSideEffectsRule checks the purity of array_filter(), array_map(), and array_reduce() #15736

Triggered via pull request August 27, 2024 15:58
Status Failure
Total duration 10m 18s
Artifacts 12

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
6s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
8s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
3s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
Matrix: integration-tests / integration-tests
Matrix: integration-tests / PMMP Tests
Matrix: extension-tests / Extension Tests
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
integration-tests / Integration - TomasVotruba/bladestan: src/Compiler/PhpContentExtractor.php#L35
Unreachable statement - code above always terminates.
integration-tests / Integration - TomasVotruba/bladestan: src/TemplateCompiler/Rules/TemplateRulesRegistry.php#L15
Class TomasVotruba\Bladestan\TemplateCompiler\Rules\TemplateRulesRegistry extends @Final class PHPStan\Rules\DirectRegistry.
integration-tests / Integration - TomasVotruba/bladestan
Process completed with exit code 1.
integration-tests / Integration - reactphp/promise: src/Internal/FulfilledPromise.php#L61
Method React\Promise\Internal\FulfilledPromise::finally() should return React\Promise\PromiseInterface<T> but returns React\Promise\PromiseInterface<(T of mixed)|null>.
integration-tests / Integration - reactphp/promise: src/Promise.php#L99
Method React\Promise\Promise::finally() should return React\Promise\PromiseInterface<T> but returns React\Promise\PromiseInterface<(T of mixed)|null>.
integration-tests / Integration - reactphp/promise
Process completed with exit code 1.
integration-tests / Integration - larastan/larastan: src/ReturnTypes/ModelOnlyDynamicMethodReturnTypeExtension.php#L72
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(mixed, mixed): mixed given.
integration-tests / Integration - larastan/larastan
Process completed with exit code 1.
integration-tests / Integration - composer/composer
Process completed with exit code 1.
integration-tests / Integration - composer/composer
Process completed with exit code 1.
integration-tests / Integration - bitExpert/phpstan-magento
Process completed with exit code 1.
integration-tests / Integration - bitExpert/phpstan-magento
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal
Process completed with exit code 1.
integration-tests / Integration - nextras/orm: src/Collection/Functions/ConjunctionOperatorFunction.php#L88
Only booleans are allowed in &&, mixed given on the left side.
integration-tests / Integration - nextras/orm: src/Collection/Functions/DisjunctionOperatorFunction.php#L81
Only booleans are allowed in ||, mixed given on the left side.
integration-tests / Integration - nextras/orm
Process completed with exit code 1.
integration-tests / PMMP Tests (8.2, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L117
Offset 1 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / PMMP Tests (8.2, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L121
Offset 2 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / PMMP Tests (8.1, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L117
Offset 1 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / PMMP Tests (8.1, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L121
Offset 2 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / Integration - efabrica-team/phpstan-latte tests
Process completed with exit code 1.
extension-tests / Extension Tests (8.0, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (8.0, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (8.1, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (8.1, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (8.3, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (8.3, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (8.2, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (8.2, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (7.3, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (7.3, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (7.4, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (7.4, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (7.2, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (7.2, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (8.4, phpstan-webmozart-assert): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L968
Parameter #2 $callback of function array_reduce expects pure-callable(mixed, mixed): mixed, Closure(PhpParser\Node\Expr, PhpParser\Node\Expr): PhpParser\Node\Expr\BinaryOp given.
extension-tests / Extension Tests (8.4, phpstan-webmozart-assert)
Process completed with exit code 2.
extension-tests / Extension Tests (8.4, phpstan-nette)
Process completed with exit code 2.

Artifacts

Produced during runtime
Name Size
baselines-bladestan-baseline.neon
393 Bytes
baselines-composer-baseline.neon
1.84 KB
baselines-drupal-baseline.neon
1.61 KB
baselines-larastan-baseline.neon
356 Bytes
baselines-magento-baseline.neon
158 Bytes
baselines-nextras-baseline.neon
1.32 KB
baselines-react-promise-baseline.neon
371 Bytes
baselines-shopware-baseline.neon
1.63 KB
phar-file
3.46 MB
phar-file-checksum
3.46 MB
pocketmine-ng-baseline-8.1.neon
818 Bytes
pocketmine-ng-baseline-8.2.neon
818 Bytes