We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c724dde commit 3b8d8abCopy full SHA for 3b8d8ab
tools/fuzzing/target.php
@@ -2,6 +2,7 @@
2
3
/** @var PhpFuzzer\Fuzzer $fuzzer */
4
5
+use PhpParser\Node;
6
use PhpParser\Node\Expr;
7
use PhpParser\Node\Scalar;
8
use PhpParser\Node\Stmt;
@@ -95,6 +96,13 @@ public function leaveNode(PhpParser\Node $node) {
95
96
) {
97
$this->hasProblematicConstruct = true;
98
}
99
+
100
+ // clone($x, ) is not preserved precisely.
101
+ if ($node instanceof Expr\FuncCall && $node->name instanceof Node\Name &&
102
+ $node->name->toLowerString() == 'clone' && count($node->args) == 1
103
+ ) {
104
+ $this->hasProblematicConstruct = true;
105
+ }
106
107
};
108
$traverser = new PhpParser\NodeTraverser();
0 commit comments