Merge branch '3.4' into 4.2

* 3.4:
  fixed CS
  [Debug][DebugClassLoader] Include found files instead of requiring them
This commit is contained in:
Fabien Potencier 2019-07-12 08:51:03 +03:00
commit a8d8cf8b45
2 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,6 @@ use Symfony\Component\Cache\Adapter\DoctrineAdapter;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Adapter\ProxyAdapter;
use Symfony\Component\Cache\Adapter\RedisAdapter;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Compiler\ResolveInstanceofConditionalsPass;

View File

@ -152,11 +152,11 @@ class DebugClassLoader
if (!$file = $this->classLoader[0]->findFile($class) ?: false) {
// no-op
} elseif (\function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file)) {
require $file;
include $file;
return;
} else {
require $file;
include $file;
}
} else {
($this->classLoader)($class);