Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error when running composer2nix #31

Open
WolfangAukang opened this issue Mar 25, 2022 · 1 comment
Open

Parse error when running composer2nix #31

WolfangAukang opened this issue Mar 25, 2022 · 1 comment

Comments

@WolfangAukang
Copy link

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

@WolfangAukang
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant