When I run composer2nix (got it by installing through composer globally) on a PHP project, it seems everything is running fine, but it stops at the following error:
Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/bjorn/.config/composer/vendor/svanderburg/pndp/src/PNDP/AST/NixFunction.php on line 19
Found the issue. I am currently using PHP 7.4 and it does not support mixed types. Not sure if it is a good idea to specify the necessary PHP version on the composer.json file.
When I run
composer2nix
(got it by installing through composer globally) on a PHP project, it seems everything is running fine, but it stops at the following error:Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/bjorn/.config/composer/vendor/svanderburg/pndp/src/PNDP/AST/NixFunction.php on line 19