Skip to content

Commit 75cc67b

Browse files
committed
minor #14121 CS: Pre incrementation/decrementation should be used if possible (gharlan)
This PR was merged into the 2.3 branch. Discussion ---------- CS: Pre incrementation/decrementation should be used if possible | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Fixes provided by new fixer: PHP-CS-Fixer/PHP-CS-Fixer#1113 If this pr is merged I would change the level of the fixer to `symfony`. Commits ------- c5123d6 CS: Pre incrementation/decrementation should be used if possible
2 parents 7deb1f6 + f31ab0f commit 75cc67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XPath/Extension/FunctionExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function translateNthChild(XPathExpr $xpath, FunctionNode $function, $las
8484

8585
if ($last) {
8686
$expr = 'last() - '.$expr;
87-
$b--;
87+
--$b;
8888
}
8989

9090
if (0 !== $b) {

0 commit comments

Comments
 (0)