File tree Expand file tree Collapse file tree
rules/Php71/Rector/FuncCall Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33declare (strict_types=1 );
44namespace Rector \Php71 \Rector \FuncCall ;
55
6+ use PHPStan \Reflection \Php \PhpFunctionReflection ;
67use PhpParser \Node ;
78use PhpParser \Node \Expr \FuncCall ;
89use 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 ;
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments