Set level by env
Closed this issue · 3 comments
damien-louis commented
Good idea this extension!
It's possible to set level alert by environment?
For example, to be free to decide to trigger just a warning in dev mode, test mode, but error prod mode.
The goal is to configure github actions/gitlab CI to just set a warning when push commit but block merged in main if error is triggered.
staabm commented
What do you mean by alert-level?
Phpstan does not has concepts like notices or warnings. Everything is an error.
damien-louis commented
Ok, I wasn't sure if phpstan allow to set warning instead of error
github-actions commented
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.