Skip to content

Commit 6c7c1ea

Browse files
committed
Ignore errors within third-party symfony libs
1 parent 76020f3 commit 6c7c1ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final class API extends AbstractAPI
5151
*
5252
* @var string
5353
*/
54-
public const RELEASE = '8.5.0';
54+
public const RELEASE = '8.5.1';
5555
/**
5656
* We're not logged in.
5757
*

src/Exception.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function extension(string $extensionName): self
8282
*/
8383
public static function exceptionErrorHandler($errno = 0, $errstr = null, $errfile = null, $errline = null): bool
8484
{
85-
$errfileReplaced = preg_replace('/phabel-transpiler\d+\./', '', $errfile ?? '');
85+
$errfileReplaced = $errfile ?? '';
8686
// If error is suppressed with @, don't throw an exception
8787
if (error_reporting() === 0
8888
|| strpos($errstr, 'headers already sent')
@@ -93,6 +93,7 @@ public static function exceptionErrorHandler($errno = 0, $errstr = null, $errfil
9393
str_contains($errfileReplaced, DIRECTORY_SEPARATOR.'amphp'.DIRECTORY_SEPARATOR)
9494
|| str_contains($errfileReplaced, DIRECTORY_SEPARATOR.'league'.DIRECTORY_SEPARATOR)
9595
|| str_contains($errfileReplaced, DIRECTORY_SEPARATOR.'phpseclib'.DIRECTORY_SEPARATOR)
96+
|| str_contains($errfileReplaced, DIRECTORY_SEPARATOR.'symfony'.DIRECTORY_SEPARATOR)
9697
)
9798
) {
9899
return false;

0 commit comments

Comments
 (0)