Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26ef430

Browse files
bug #16651 [Debug] Ensure class declarations are loaded only once (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [Debug] Ensure class declarations are loaded only once | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15297 | License | MIT | Doc PR | - Commits ------- 01c08fc [Debug] Ensure class declarations are loaded only once
2 parents 6de2304 + 01c08fc commit 26ef430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function loadClass($class)
147147
try {
148148
if ($this->isFinder) {
149149
if ($file = $this->classLoader[0]->findFile($class)) {
150-
require $file;
150+
require_once $file;
151151
}
152152
} else {
153153
call_user_func($this->classLoader, $class);

0 commit comments

Comments
 (0)