From 2975a1bb0cc1a9e76c4cf09ad9b32494ac90d4e0 Mon Sep 17 00:00:00 2001 From: Thomas Schiet Date: Wed, 7 Sep 2022 14:59:44 +0200 Subject: [PATCH] Skip first class callables in NullToStrictStringFuncCallArgRector (#2919) --- .../Fixture/skip_first_class_callable.php.inc | 11 +++++++++++ .../FuncCall/NullToStrictStringFuncCallArgRector.php | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 rules-tests/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector/Fixture/skip_first_class_callable.php.inc diff --git a/rules-tests/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector/Fixture/skip_first_class_callable.php.inc b/rules-tests/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector/Fixture/skip_first_class_callable.php.inc new file mode 100644 index 00000000000..855cff83902 --- /dev/null +++ b/rules-tests/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector/Fixture/skip_first_class_callable.php.inc @@ -0,0 +1,11 @@ +nodeNameResolver->isNames($funcCall, $functionNames); + return ! $this->nodeNameResolver->isNames($funcCall, $functionNames) || $funcCall->isFirstClassCallable(); } }