4 ms·
What about this? if (env('LOG_LEVEL') = 3) {} Would throw and everything would be ok. Otherwise, use constants. Also, lint against assignment in if/while con
by adrianhel 8y ago
What about this?
if (env('LOG_LEVEL') = 3) {}
Would throw and everything would be ok. Otherwise, use constants.
Also, lint against assignment in if/while conditions. If you want to assign in those conditions, disable linting for the line and make it explicit.