I am trying to troubleshoot a problem I am having with error reporting.
When I try to access an object as an array the following error message should be displayed by PHP
When setting the error_reporting to E_ALL, then the message appears fine and execution is halted.
Fatal error: Cannot use object of type [object name] as array
Now this displayes a bunch of notices as well that I want to remove so I set the error reporting to E_ALL ^ E_NOTICE, but then the message is not shown at all.
The weird thing is that other parce errors are being shown ok.
Any ideas how to fix this?