mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fix E_STRICT errors not being reported
This commit is contained in:
parent
a64715beeb
commit
c5aa074bff
@ -220,7 +220,7 @@ class Debug {
|
|||||||
),
|
),
|
||||||
SS_Log::NOTICE
|
SS_Log::NOTICE
|
||||||
);
|
);
|
||||||
|
|
||||||
if(Director::isDev()) {
|
if(Director::isDev()) {
|
||||||
self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Notice");
|
self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Notice");
|
||||||
}
|
}
|
||||||
@ -699,6 +699,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) {
|
|||||||
case E_USER_NOTICE:
|
case E_USER_NOTICE:
|
||||||
case E_DEPRECATED:
|
case E_DEPRECATED:
|
||||||
case E_USER_DEPRECATED:
|
case E_USER_DEPRECATED:
|
||||||
|
case E_STRICT:
|
||||||
Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
|
Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,10 @@ class DebugView extends Object {
|
|||||||
E_USER_WARNING => array(
|
E_USER_WARNING => array(
|
||||||
'title' => 'User Warning',
|
'title' => 'User Warning',
|
||||||
'class' => 'warning'
|
'class' => 'warning'
|
||||||
|
),
|
||||||
|
E_STRICT => array(
|
||||||
|
'title' => 'Strict Notice',
|
||||||
|
'class' => 'notice'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user