Closed slaFFik closed 2 years ago
Unfortunately I'm not able to build a new version of Ray right now.
build.sh
is generating this error
Fatal error: During inheritance of IteratorAggregate: Uncaught ErrorException: Return type of Humbug\PhpScoper\PhpParser\NodeVisitor\NamespaceStmt\NamespaceStmtCollection::getIterator(): iterable should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/freek/dev/code/wordpress-ray/vendor-bin/php-scoper/vendor/humbug/php-scoper/src/PhpParser/NodeVisitor/NamespaceStmt/NamespaceStmtCollection.php:108
@jeffreyvr do you perhaps now how to solve that one?
@freekmurze Looks like a PHP 8.1 issue with PHP Scoper. I have created an issue at the PHP-Scoper repo.
@freekmurze PHP-Scoper has been updated so you should be able to run the build script again. :)
@jeffreyvr Thanks for the assist. The build script ran fine again indeed!
@slaFFik The latest version should work in PHP 8.1
Note the record in the error log: