Skip to content

Commit 6dd3062

Browse files
Merge branch '11.5' into 12.0
2 parents 5649a1f + 99430ca commit 6dd3062

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Event/Dispatcher/DirectDispatcher.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use const PHP_EOL;
1313
use function array_key_exists;
14-
use function defined;
1514
use function dirname;
1615
use function sprintf;
1716
use function str_starts_with;
@@ -116,8 +115,7 @@ public function dispatch(Event $event): void
116115
*/
117116
public function handleThrowable(Throwable $t): void
118117
{
119-
if (!defined('PHPUNIT_TESTSUITE') &&
120-
$this->isThrowableFromThirdPartySubscriber($t)) {
118+
if ($this->isThrowableFromThirdPartySubscriber($t)) {
121119
Facade::emitter()->testRunnerTriggeredPhpunitWarning(
122120
sprintf(
123121
'Exception in third-party event subscriber: %s%s%s',

0 commit comments

Comments
 (0)