Skip to content

Commit 430103a

Browse files
[ErrorHandler] Don't trigger deprecations for lazy objects extending @final classes
1 parent 44d67a9 commit 430103a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DebugClassLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Prophecy\Prophecy\ProphecySubjectInterface;
2222
use ProxyManager\Proxy\ProxyInterface;
2323
use Symfony\Component\ErrorHandler\Internal\TentativeTypes;
24+
use Symfony\Component\VarExporter\LazyGhostObjectInterface;
2425

2526
/**
2627
* Autoloader checking if the class is really defined in the file found.
@@ -250,6 +251,7 @@ public static function checkClasses(): bool
250251
&& !is_subclass_of($symbols[$i], ProphecySubjectInterface::class)
251252
&& !is_subclass_of($symbols[$i], Proxy::class)
252253
&& !is_subclass_of($symbols[$i], ProxyInterface::class)
254+
&& !is_subclass_of($symbols[$i], LazyGhostObjectInterface::class)
253255
&& !is_subclass_of($symbols[$i], LegacyProxy::class)
254256
&& !is_subclass_of($symbols[$i], MockInterface::class)
255257
&& !is_subclass_of($symbols[$i], IMock::class)

0 commit comments

Comments
 (0)