In Laravel 4, it was easy enough to suppress E_NOTICE messages;
I can't seem to be able to do this because if I add
error_reporting(E_ALL ^ E_NOTICE)
anywhere it simply gets overridden.
This seems to happen around here:
(index.php)
$response = $kernel->handle(
$request = IlluminateHttpRequest::capture()
);
I have added custom code to handle more "pretty" views of exceptions/errors within Exceptions/Handler.php but I'm struggling to switch off notices (I don't want any of these firing off with notices at all)
- Yes, the issue should be fixed, I'm aware of this, however this is a case where I'd prefer the notices NOT bombing the app on live (I have a custom logging solution for this), and on dev I'd like the notice to show.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…