Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59226a5

Browse files
committed
[PhpUnitBridge] Fix Deprecation file when it comes from the TestsListener
1 parent 56679fe commit 59226a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
1313

1414
use PHPUnit\Util\Test;
15+
use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerFor;
1516

1617
/**
1718
* @internal
@@ -81,8 +82,11 @@ public function __construct($message, array $trace, $file)
8182
$this->triggeringFile = $parsedMsg['triggering_file'];
8283
}
8384

85+
return;
86+
} elseif (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
8487
return;
8588
}
89+
8690
$this->originClass = isset($line['object']) ? \get_class($line['object']) : $line['class'];
8791
$this->originMethod = $line['function'];
8892
}

0 commit comments

Comments
 (0)