We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have created a couple of environment variables that are being converted to integers, which is causing the value to be incorrectly converted.
For example:
"0123" becomes "123" "+17777777777" becomes "17777777777"
I would expect the value to be output as "0123" and "+17777777777" when I use App::env.
App::env
Value is output as "123" and "17777777777"
4.0.4
Here is the code causing the issue: https://github.com/craftcms/cms/blob/develop/src/helpers/App.php#L88
The text was updated successfully, but these errors were encountered:
dc39a74
Thanks for reporting that. Just tightened this up a bit for the next release.
Sorry, something went wrong.
Craft 4.0.5 is out now with that fix.
No branches or pull requests
What happened?
Description
I have created a couple of environment variables that are being converted to integers, which is causing the value to be incorrectly converted.
For example:
"0123" becomes "123"
"+17777777777" becomes "17777777777"
Expected behavior
I would expect the value to be output as "0123" and "+17777777777" when I use
App::env
.Actual behavior
Value is output as "123" and "17777777777"
Craft CMS version
4.0.4
Here is the code causing the issue: https://github.com/craftcms/cms/blob/develop/src/helpers/App.php#L88
The text was updated successfully, but these errors were encountered: