Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ba06a0

Browse filesBrowse files
committed
[PhpUnitBridge] Fix Deprecation file when it comes from the TestsListener
1 parent 56679fe commit 1ba06a0
Copy full SHA for 1ba06a0

File tree

1 file changed

+6
-0
lines changed
Filter options

1 file changed

+6
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php
+6Lines changed: 6 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
@@ -83,6 +84,11 @@ public function __construct($message, array $trace, $file)
8384

8485
return;
8586
}
87+
88+
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
89+
return;
90+
}
91+
8692
$this->originClass = isset($line['object']) ? \get_class($line['object']) : $line['class'];
8793
$this->originMethod = $line['function'];
8894
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.