[2.8] Fix issues reported by static analyse

This commit is contained in:
Romain Neutron 2017-02-28 14:53:41 +01:00
parent 8881221244
commit cb14bfd166
No known key found for this signature in database
GPG Key ID: 201FC7CF9F0CA3ED
3 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\CacheWarmer;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Templating\TemplateNameParserInterface;
use Symfony\Component\Templating\TemplateReferenceInterface;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
/**

View File

@ -11,6 +11,7 @@
namespace Symfony\Component\HttpKernel\EventListener;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

View File

@ -455,7 +455,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess
$value = iconv($that->getCharset(), 'UTF-8', $value);
}
$callback = function ($matches) use ($that) {
$callback = function ($matches) {
$char = $matches[0];
// \xHH