Yeah, that's exactly what's happening. In Router.php:
public static function handleError($errNo, $errStr, $errFile, $errLine) {
if (error_reporting()) {
$return = new \StdClass();
$return->error = 'Internal Server Error';
$return->devmessage = [
'message' => $errStr,
'location' => $errFile,
'line' => $errLine
];
self::displayOrLogError($return, 500);
}
}
So if any error logging is enabled this will be fired, regardless of whether we actually care about that type of error. I've made some modifications, so I'll do a PR and you can see what you think @Sebi