Skip to content

Commit f9b6c95

Browse files
committed
Merge branch '4.0'
* 4.0: fix the handling of timestamp in the MongoDBSessionHandler Improve the documentation of `Finder::exclude()` [DI] Skip resource tracking if disabled [WebProfilerBundle] fix wrong variable for profiler counting ajax requests
2 parents 57164a0 + 93ad14f commit f9b6c95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ContainerBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,11 @@ public function getReflectionClass(?string $class, bool $throw = true): ?\Reflec
326326
try {
327327
if (isset($this->classReflectors[$class])) {
328328
$classReflector = $this->classReflectors[$class];
329-
} else {
329+
} elseif ($this->trackResources) {
330330
$resource = new ClassExistenceResource($class, false);
331331
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
332+
} else {
333+
$classReflector = new \ReflectionClass($class);
332334
}
333335
} catch (\ReflectionException $e) {
334336
if ($throw) {

0 commit comments

Comments
 (0)