[ErrorHandler][DebugClassLoader] Do not check Mockery mocks classes

This commit is contained in:
Thomas Calvet 2020-10-01 18:21:20 +02:00
parent abe0ecac91
commit bbd12fe27f
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\ErrorHandler;
use Doctrine\Common\Persistence\Proxy as LegacyProxy;
use Doctrine\Persistence\Proxy;
use Mockery\MockInterface;
use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
use PHPUnit\Framework\MockObject\MockObject;
use Prophecy\Prophecy\ProphecySubjectInterface;
@ -306,6 +307,7 @@ class DebugClassLoader
&& !is_subclass_of($symbols[$i], Proxy::class)
&& !is_subclass_of($symbols[$i], ProxyInterface::class)
&& !is_subclass_of($symbols[$i], LegacyProxy::class)
&& !is_subclass_of($symbols[$i], MockInterface::class)
) {
$loader->checkClass($symbols[$i]);
}