Skip to content

Commit 87be8e6

Browse files
committed
Updated Rector to commit 34765ccaca13fa7c7b29ca18f319fa19ad244e6b
rectorphp/rector-src@34765cc [Php71] Skip replaced native function on RemoveExtraParametersRector (#6828)
1 parent 61f11eb commit 87be8e6

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

rules/Php71/Rector/FuncCall/RemoveExtraParametersRector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare (strict_types=1);
44
namespace Rector\Php71\Rector\FuncCall;
55

6+
use PHPStan\Reflection\Php\PhpFunctionReflection;
67
use PhpParser\Node;
78
use PhpParser\Node\Expr\FuncCall;
89
use PhpParser\Node\Expr\MethodCall;
@@ -78,6 +79,10 @@ public function refactor(Node $node) : ?Node
7879
return null;
7980
}
8081
}
82+
// skip replaced native function
83+
if ($functionLikeReflection instanceof PhpFunctionReflection && \strtolower((string) $this->getName($node)) !== \strtolower($functionLikeReflection->getName())) {
84+
return null;
85+
}
8186
$maximumAllowedParameterCount = $this->resolveMaximumAllowedParameterCount($functionLikeReflection);
8287
if ($node->isFirstClassCallable()) {
8388
return null;

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '9f1002050a5d498c6e8304f75fbd30e2a8f1933d';
22+
public const PACKAGE_VERSION = '34765ccaca13fa7c7b29ca18f319fa19ad244e6b';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-04-10 16:18:04';
27+
public const RELEASE_DATE = '2025-04-11 19:41:00';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)