Skip to content

Commit 36aa013

Browse files
committed
[2.8] Fix issues reported by static analyse
1 parent 8881221 commit 36aa013

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\CacheWarmer;
1313

14-
use Symfony\Component\HttpKernel\KernelInterface;
1514
use Symfony\Component\Finder\Finder;
16-
use Symfony\Component\Templating\TemplateNameParserInterface;
15+
use Symfony\Component\HttpKernel\KernelInterface;
1716
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
17+
use Symfony\Component\Templating\TemplateNameParserInterface;
18+
use Symfony\Component\Templating\TemplateReferenceInterface;
1819

1920
/**
2021
* Finds all the templates.

src/Symfony/Component/HttpKernel/EventListener/SessionListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

14+
use Symfony\Component\HttpFoundation\Session\SessionInterface;
1415
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1516
use Symfony\Component\HttpKernel\KernelEvents;
1617
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

src/Symfony/Component/Templating/PhpEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ function ($value) use ($that) {
455455
$value = iconv($that->getCharset(), 'UTF-8', $value);
456456
}
457457

458-
$callback = function ($matches) use ($that) {
458+
$callback = function ($matches) {
459459
$char = $matches[0];
460460

461461
// \xHH

0 commit comments

Comments
 (0)