-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Environments #445
base: master
Are you sure you want to change the base?
Environments #445
Conversation
rustamwin
commented
Mar 14, 2022
Q | A |
---|---|
Is bugfix? | ✔️/❌ |
New feature? | ✔️/❌ |
Breaks BC? | ✔️/❌ |
Fixed issues | comma-separated list of tickets # fixed by the PR, if any |
return \filter_var(self::$values[$name] ?? null, FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE) ?? $default; | ||
} | ||
|
||
public static function load(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move this method to separate class? In most cases this method will be unnecessary in IDE autocompletion on Env::
.
We need to discuss whether environment variables should be cached. |
What's the purpose of caching them? |
The advantage of the env variables that they can be changed on the fly. Without that you may use simple php array to store such variables |