mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 12:32:42 +00:00
Ignore errorHandler if warning suppressor (@command()) is used.
This commit is contained in:
parent
ffaec10a7c
commit
aa0bad9247
3 changed files with 21 additions and 0 deletions
|
@ -70,6 +70,9 @@ class ConsoleErrorHandler extends ErrorHandler {
|
|||
* @return void
|
||||
*/
|
||||
public static function handleError($code, $description, $file = null, $line = null, $context = null) {
|
||||
if (error_reporting() === 0) {
|
||||
return;
|
||||
}
|
||||
$stderr = self::getStderr();
|
||||
list($name, $log) = self::_mapErrorCode($code);
|
||||
$message = sprintf(__('%s in [%s, line %s]'), $description, $file, $line);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue