Skip to content

fix phpstan

fix phpstan #323

Triggered via push November 19, 2024 15:36
Status Failure
Total duration 33s
Artifacts

phpstan-7.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
phpstan7: src/Builder/AlternativeLookup.php#L37
Parameter $name of class PhpParser\Node\Expr\MethodCall constructor expects PhpParser\Node\Expr|PhpParser\Node\Identifier|string, PhpParser\Node\Name given.
phpstan7: src/Builder/Capacity/Extractor/All.php#L101
Method Kiboko\Plugin\Akeneo\Builder\Capacity\Extractor\All::compileSearch() return type has no value type specified in iterable type array.
phpstan7: src/Builder/Capacity/Extractor/All.php#L115
Method Kiboko\Plugin\Akeneo\Builder\Capacity\Extractor\All::compileArguments() return type has no value type specified in iterable type array.
phpstan7: src/Builder/Capacity/Extractor/Get.php#L51
Parameter #1 $array (array{PhpParser\Node\Arg}) to function array_filter does not contain falsy values, the array will always stay the same.
phpstan7: src/Builder/Capacity/Extractor/ListPerPage.php#L93
Method Kiboko\Plugin\Akeneo\Builder\Capacity\Extractor\ListPerPage::compileSearch() return type has no value type specified in iterable type array.
phpstan7: src/Builder/Capacity/Lookup/All.php#L95
Method Kiboko\Plugin\Akeneo\Builder\Capacity\Lookup\All::compileSearch() return type has no value type specified in iterable type array.
phpstan7: src/Builder/Capacity/Lookup/Download.php#L132
Parameter $args of class PhpParser\Node\Expr\FuncCall constructor expects array<PhpParser\Node\Arg|PhpParser\Node\VariadicPlaceholder>, array<int, PhpParser\Node\Arg|PhpParser\Node\Expr\Variable> given.
phpstan7: src/Builder/Capacity/Lookup/Get.php#L128
Parameter $name of class PhpParser\Node\Expr\MethodCall constructor expects PhpParser\Node\Expr|PhpParser\Node\Identifier|string, PhpParser\Node\Name given.
phpstan7: src/Builder/Capacity/Lookup/ListPerPage.php#L93
Method Kiboko\Plugin\Akeneo\Builder\Capacity\Lookup\ListPerPage::compileSearch() return type has no value type specified in iterable type array.
phpstan7: src/Builder/Client.php#L139
Method Kiboko\Plugin\Akeneo\Builder\Client::getFactoryArguments() return type has no value type specified in iterable type array.
phpstan7
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/