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
Error running with numeric environment variable name #10833
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Reproduced: phpstan/phpstan-src@24d990b |
@desmana interessting, I never needed a numeric env var. could you give a bit more detail when/how you need that? I am just curious. |
@staabm CI stack I'm running uses execline script from s6 supervision suite. If you're not familiar, think of I did some research before submitting the report. It's not recommended by POSIX to use such variables:
They're not trivial to set either. For example $ export 1=1
bash: export: `1=1': not a valid identifier |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
Having variables with numeric names being present in the environment results in the following error:
I'm using PHPStan version
1.11.x-dev@a72400b
from this repository.Code snippet that reproduces the problem
No response
Expected output
Program should run normally:
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: