staabm/phpstan-todo-by

Set level by env

Closed this issue · 3 comments

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.

What do you mean by alert-level?

Phpstan does not has concepts like notices or warnings. Everything is an error.

Ok, I wasn't sure if phpstan allow to set warning instead of error

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.