Skip to content

Commit

Permalink
Merge branch '7.1' into 7.2
Browse files Browse the repository at this point in the history
* 7.1:
  fix: ignore missing directory in isVendor()
  [OptionsResolver] Allow Union/Intersection Types in Resolved Closures
  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
  make RelayProxyTrait compatible with relay extension 0.9.0
  [Validator] review italian translations
  Update PR template
  • Loading branch information
nicolas-grekas committed Nov 20, 2024
2 parents 5f5dbba + eb3b33a commit 8d0486a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function getReflectionClass(?string $class, bool $throw = true): ?\Reflec
$resource = new ClassExistenceResource($class, false);
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
} else {
$classReflector = class_exists($class) ? new \ReflectionClass($class) : false;
$classReflector = class_exists($class) || interface_exists($class, false) ? new \ReflectionClass($class) : false;
}
} catch (\ReflectionException $e) {
if ($throw) {
Expand Down

0 comments on commit 8d0486a

Please sign in to comment.