Open
Description
Describe the bug
The enforced error hide/show is currently not working on projects that don't use master because onProduction() actually just hardcodes master and doesn't check the environment type.
Even with that fixed, I think it's not a good idea to have that. Usually you don't want errors to show either when clients are testing and there might even be a case where you need to enable it on production.
I'd suggest to either remove the whole section or just keep them as commented out examples or so.
Include some logs
No logs
Reproducing
Have a project with a main branch, do something that triggers a php notice/error.
Expected behavior
No error is shown on production.
Your environment
not relevant
Screenshots
No response
Additional context
No response