1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 04:35:12 +01:00

Small fix

This commit is contained in:
Daniil Gentili 2021-12-15 14:08:40 +01:00
parent 2447d7bafc
commit 6e3fe54954
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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')