-
-
Save piotrbelina/10d5544c5fc872ec2a77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Mage_Core_Model_App | |
{ | |
// ... | |
/** | |
* Redeclare custom error handler | |
* | |
* @param string $handler | |
* @return Mage_Core_Model_App | |
*/ | |
public function setErrorHandler($handler) | |
{ | |
if (!Mage::getIsDeveloperMode()) { | |
set_error_handler($handler); | |
} else { | |
require_once __DIR__ . '/../../../../../../lib/PHP-Error/php_error.php'; | |
\php_error\reportErrors(); | |
} | |
return $this; | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment