mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 11:18:59 +01:00
Small fix
This commit is contained in:
parent
2447d7bafc
commit
6e3fe54954
@ -83,6 +83,7 @@ class Exception extends \Exception
|
||||
*/
|
||||
public static function exceptionErrorHandler($errno = 0, $errstr = null, $errfile = null, $errline = null): bool
|
||||
{
|
||||
$errfile = \str_replace('phabel.transpiler'.PHP_MAJOR_VERSION.PHP_MINOR_VERSION, '', $errfile ?? '');
|
||||
// If error is suppressed with @, don't throw an exception
|
||||
if (\error_reporting() === 0
|
||||
|| \strpos($errstr, 'headers already sent')
|
||||
|
Loading…
Reference in New Issue
Block a user