bug #38373 [ErrorHandler][DebugClassLoader] Do not check Mockery mocks classes (fancyweb)
This PR was merged into the 4.4 branch.
Discussion
----------
[ErrorHandler][DebugClassLoader] Do not check Mockery mocks classes
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | https://github.com/symfony/symfony/issues/37916
| License | MIT
| Doc PR | -
Commits
-------
bbd12fe27f
[ErrorHandler][DebugClassLoader] Do not check Mockery mocks classes
This commit is contained in:
commit
9a5a856b18
@ -13,6 +13,7 @@ namespace Symfony\Component\ErrorHandler;
|
|||||||
|
|
||||||
use Doctrine\Common\Persistence\Proxy as LegacyProxy;
|
use Doctrine\Common\Persistence\Proxy as LegacyProxy;
|
||||||
use Doctrine\Persistence\Proxy;
|
use Doctrine\Persistence\Proxy;
|
||||||
|
use Mockery\MockInterface;
|
||||||
use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
|
use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
|
||||||
use PHPUnit\Framework\MockObject\MockObject;
|
use PHPUnit\Framework\MockObject\MockObject;
|
||||||
use Prophecy\Prophecy\ProphecySubjectInterface;
|
use Prophecy\Prophecy\ProphecySubjectInterface;
|
||||||
@ -306,6 +307,7 @@ class DebugClassLoader
|
|||||||
&& !is_subclass_of($symbols[$i], Proxy::class)
|
&& !is_subclass_of($symbols[$i], Proxy::class)
|
||||||
&& !is_subclass_of($symbols[$i], ProxyInterface::class)
|
&& !is_subclass_of($symbols[$i], ProxyInterface::class)
|
||||||
&& !is_subclass_of($symbols[$i], LegacyProxy::class)
|
&& !is_subclass_of($symbols[$i], LegacyProxy::class)
|
||||||
|
&& !is_subclass_of($symbols[$i], MockInterface::class)
|
||||||
) {
|
) {
|
||||||
$loader->checkClass($symbols[$i]);
|
$loader->checkClass($symbols[$i]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user