nikic / PHP-Fuzzer

Experimental fuzzer for PHP libraries
MIT License
416 stars 16 forks source link

Crashes on php8.1: Node\FunctionLike has getStmts(), not stmts property #8

Closed xPaw closed 2 years ago

xPaw commented 2 years ago

https://github.com/nikic/PHP-Fuzzer/blob/929b09c27cab5492b0d2a6cd99b4ce9afdf994db/src/Instrumentation/Visitor.php#L25

It's crashing on php 8.1:

PHP Fatal error: Uncaught Error: [2] Undefined property: PhpParser\Node\Expr\ArrowFunction::$stmts in PHP-Fuzzer\src\Instrumentation\Visitor.php on line 33