File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Meilisearch \Bundle \Services ;
6
6
7
+ use Doctrine \Common \Util \ClassUtils ;
7
8
use Doctrine \ORM \Proxy \DefaultProxyClassNameResolver ;
8
9
use Doctrine \Persistence \ObjectManager ;
9
10
use Meilisearch \Bundle \Collection ;
18
19
use Symfony \Component \PropertyAccess \PropertyAccessorInterface ;
19
20
use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
20
21
21
- use function class_exists ;
22
-
23
22
final class MeilisearchService implements SearchService
24
23
{
25
24
private NormalizerInterface $ normalizer ;
@@ -375,14 +374,13 @@ private static function resolveClass(object $object): string
375
374
static $ resolver ;
376
375
377
376
$ resolver ??= (function () {
378
-
379
377
// Doctrine ORM v3+ compatibility
380
- if (class_exists (DefaultProxyClassNameResolver::class)) {
378
+ if (\ class_exists (DefaultProxyClassNameResolver::class)) {
381
379
return fn (object $ object ) => DefaultProxyClassNameResolver::getClass ($ object );
382
380
}
383
381
384
382
// Legacy Doctrine ORM compatibility
385
- return fn (object $ object ) => \ Doctrine \ Common \ Util \ ClassUtils::getClass ($ object );
383
+ return fn (object $ object ) => ClassUtils::getClass ($ object );
386
384
})();
387
385
388
386
return $ resolver ($ object );
You can’t perform that action at this time.
0 commit comments