Skip to content

Commit 7a4dbef

Browse files
Merge branch '5.4' into 6.4
* 5.4: Issue #58821: [DependencyInjection] Support interfaces in ContainerBuilder::getReflectionClass(). Dynamically fix compatibility with doctrine/data-fixtures v2 [HttpKernel] Ensure HttpCache::getTraceKey() does not throw exception don't call EntityManager::initializeObject() with scalar values [Validator] review italian translations Update PR template
2 parents 70ab1f6 + e5ca16d commit 7a4dbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function getReflectionClass(?string $class, bool $throw = true): ?\Reflec
360360
$resource = new ClassExistenceResource($class, false);
361361
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
362362
} else {
363-
$classReflector = class_exists($class) ? new \ReflectionClass($class) : false;
363+
$classReflector = class_exists($class) || interface_exists($class, false) ? new \ReflectionClass($class) : false;
364364
}
365365
} catch (\ReflectionException $e) {
366366
if ($throw) {

0 commit comments

Comments
 (0)