8000 [ErrorHandler][DebugClassLoader] Do not check Phake mocks classes · symfony/symfony@9ed93df · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ed93df

Browse files
committed
[ErrorHandler][DebugClassLoader] Do not check Phake mocks classes
1 parent ffb0d2d commit 9ed93df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Doctrine\Common\Persistence\Proxy as LegacyProxy;
1616
use Doctrine\Persistence\Proxy;
1717
use Mockery\MockInterface;
18+
use Phake\IMock;
1819
use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
1920
use PHPUnit\Framework\MockObject\MockObject;
2021
use Prophecy\Prophecy\ProphecySubjectInterface;
@@ -310,6 +311,7 @@ public static function checkClasses(): bool
310311
&& !is_subclass_of($symbols[$i], ProxyInterface::class)
311312
&& !is_subclass_of($symbols[$i], LegacyProxy::class)
312313
&& !is_subclass_of($symbols[$i], MockInterface::class)
314+
&& !is_subclass_of($symbols[$i], IMock::class)
313315
) {
314316
$loader->checkClass($symbols[$i]);
315317
}

0 commit comments

Comments
 (0)
0