Skip to content

Add PHP-Parser 5 support #1664

Add PHP-Parser 5 support

Add PHP-Parser 5 support #1664

Triggered via pull request March 23, 2024 13:46
Status Failure
Total duration 3m 57s
Artifacts

autoreview.yaml

on: pull_request
Matrix: tests
Autoreview Status
0s
Autoreview Status
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
Autoreview on PHP 8.2: src/Mutator/Operator/Finally_.php#L79
Return type (iterable<int|PhpParser\Node\Stmt\Nop>) of method Infection\Mutator\Operator\Finally_::mutate() should be covariant with return type (iterable<array<PhpParser\Node>|PhpParser\Node>) of method Infection\Mutator\Mutator<PhpParser\Node\Stmt\Finally_>::mutate()
Autoreview on PHP 8.2: src/Mutator/Operator/SpreadOneItem.php#L89
Parameter #1 $items of class PhpParser\Node\Expr\Array_ constructor expects array<PhpParser\Node\ArrayItem>, array<int, PhpParser\Node\Expr\ArrayItem> given.
Autoreview on PHP 8.2: src/Mutator/Regex/PregQuote.php#L91
Generator expects value type PhpParser\Node\Arg, PhpParser\Node\Expr given.
Autoreview on PHP 8.2: src/Mutator/Removal/ArrayItemRemoval.php#L118
Parameter #1 $items of method Infection\Mutator\Removal\ArrayItemRemoval::getItemsIndexes() expects array<PhpParser\Node\Expr\ArrayItem|null>, array<PhpParser\Node\ArrayItem> given.
Autoreview on PHP 8.2: src/Mutator/Removal/MatchArmRemoval.php#L121
Argument of an invalid type array<int, PhpParser\Node\Expr>|null supplied for foreach, only iterables are supported.
Autoreview on PHP 8.2: src/Mutator/Removal/MatchArmRemoval.php#L126
Parameter #1 $array of function array_values expects array, array<int<0, max>, PhpParser\Node\Expr>|null given.
Autoreview on PHP 8.2: src/PhpParser/Visitor/MutatorVisitor.php#L1
Ignored error pattern #^Method Infection\\PhpParser\\Visitor\\MutatorVisitor\:\:leaveNode\(\) never returns int so it can be removed from the return type\.$# in path /home/runner/work/infection/infection/src/PhpParser/Visitor/MutatorVisitor.php was not matched in reported errors.
Autoreview on PHP 8.2: src/PhpParser/Visitor/NonMutableNodesIgnorerVisitor.php#L55
Method Infection\PhpParser\Visitor\NonMutableNodesIgnorerVisitor::enterNode() never returns array<PhpParser\Node> so it can be removed from the return type.
Autoreview on PHP 8.2: src/PhpParser/Visitor/ReflectionVisitor.php#L79
Method Infection\PhpParser\Visitor\ReflectionVisitor::enterNode() never returns array<PhpParser\Node> so it can be removed from the return type.
Autoreview on PHP 8.2
Process completed with exit code 2.
Autoreview Status
Process completed with exit code 1.
Autoreview on PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.