Skip to content

Commit ae94f2b

Browse files
Merge branch '4.0'
* 4.0: Fix tests PropertyInfo\DoctrineExtractor - There is bug when indexBy is meta key Fix PercentType error rendering. [minor] SCA [Cache] Inline some hot function calls fixed Silex project's URL fixed deprecations in tests fixed Twig URL [Cache] Add missing `@internal` tag on ProxyTrait fix formatting arguments in plaintext format Fix PSR exception context key Don't assume that file binary exists on *nix OS Fix that ESI/SSI processing can turn a \"private\" response \"public\" [Form] Fixed trimming choice values fix rendering exception stack traces [Routing] Fix loading multiple class annotations for invokable classes
2 parents 61ad601 + 87c2d52 commit ae94f2b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Mapping/Factory/LazyLoadingMetadataFactory.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,6 @@ public function hasMetadataFor($value)
160160

161161
$class = ltrim(is_object($value) ? get_class($value) : $value, '\\');
162162

163-
if (class_exists($class) || interface_exists($class)) {
164-
return true;
165-
}
166-
167-
return false;
163+
return class_exists($class) || interface_exists($class, false);
168164
}
169165
}

0 commit comments

Comments
 (0)