Rethrow PHP notices as fatal errors
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #820334. -->
Reported by: [klausi](https://www.drupal.org/user/262198)
>>>
<p>Because PHP is such a bad programming language, I sometimes search for bugs far away from where they really come from. Example:</p>
<pre>$remote = new RulesWebRemote();<br>$test_remote->name = 'test_service';</pre><p>
Of course I meant the variable $remote in the second line and forgot to rename it in the first line. This creates a PHP notice, but I never see that notice because a fatal error is triggered from this bug later in the execution.</p>
<p>Therefore I want all notices to be fatal errors during development in order to do debugging faster. I thought this could live as option in the devel module. The approach would be to write a custom PHP error handler that re-triggers notices as fatal errors.</p>
<p>Any thoughts on this?</p>
issue