diff --git a/src/voku/SimplePhpParser/Parsers/Helper/Utils.php b/src/voku/SimplePhpParser/Parsers/Helper/Utils.php index f0b4884..fb6ad78 100644 --- a/src/voku/SimplePhpParser/Parsers/Helper/Utils.php +++ b/src/voku/SimplePhpParser/Parsers/Helper/Utils.php @@ -5,10 +5,10 @@ namespace voku\SimplePhpParser\Parsers\Helper; use PhpParser\Node\Expr\UnaryMinus; -use ReflectionClass; -use ReflectionFunction; use RecursiveArrayIterator; use RecursiveIteratorIterator; +use ReflectionClass; +use ReflectionFunction; final class Utils { @@ -77,7 +77,6 @@ public static function getPhpParserValueFromNode( ?string $classStr = null, ?ParserContainer $parserContainer = null ) { - if (\property_exists($node, 'value')) { /** @psalm-suppress UndefinedPropertyFetch - false-positive ? */ if (\is_object($node->value)) {