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
This commit is contained in:
commit
26ef430b5b
@ -147,7 +147,7 @@ class DebugClassLoader
|
||||
try {
|
||||
if ($this->isFinder) {
|
||||
if ($file = $this->classLoader[0]->findFile($class)) {
|
||||
require $file;
|
||||
require_once $file;
|
||||
}
|
||||
} else {
|
||||
call_user_func($this->classLoader, $class);
|
||||
|
Reference in New Issue
Block a user