File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 20
20
use PHPUnit \Framework \MockObject \MockObject ;
21
21
use Prophecy \Prophecy \ProphecySubjectInterface ;
22
22
use ProxyManager \Proxy \ProxyInterface ;
23
+ use Symfony \Component \DependencyInjection \Argument \LazyClosure ;
23
24
use Symfony \Component \ErrorHandler \Internal \TentativeTypes ;
24
25
use Symfony \Component \VarExporter \LazyObjectInterface ;
25
26
@@ -259,6 +260,7 @@ public static function checkClasses(): bool
259
260
&& !is_subclass_of ($ symbols [$ i ], LegacyProxy::class)
260
261
&& !is_subclass_of ($ symbols [$ i ], MockInterface::class)
261
262
&& !is_subclass_of ($ symbols [$ i ], IMock::class)
263
+ && !(is_subclass_of ($ symbols [$ i ], LazyClosure::class) && str_contains ($ symbols [$ i ], "@anonymous \0" ))
262
264
) {
263
265
$ loader ->checkClass ($ symbols [$ i ]);
264
266
}
You can’t perform that action at this time.
0 commit comments