nette / php-generator

🐘 Generates neat PHP code for you. Supports new PHP 8.3 features.
https://doc.nette.org/php-generator
Other
2.11k stars 138 forks source link

Do not prescribe numeric array indices in setParameters #91

Closed spawnia closed 3 years ago

spawnia commented 3 years ago

The following code broke:

        $parameters = $execute->getParameters();
        $parameters[] = $parameter;

        $execute->setParameters($parameters);
Error: Cannot unpack array with string keys

/home/benedikt/projects/sailor/vendor/nette/php-generator/src/PhpGenerator/Traits/FunctionLike.php:72
spawnia commented 3 years ago

Thanks, looking forward to a release that has the bugfix 👍