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

Skip to content

Commit d8c964c

Browse files
minor #21801 [2.8] Fix issues reported by static analyse (romainneutron)
This PR was merged into the 2.8 branch. Discussion ---------- [2.8] Fix issues reported by static analyse | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Followup #21800 Commits ------- cb14bfd [2.8] Fix issues reported by static analyse
2 parents 8881221 + cb14bfd commit d8c964c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\HttpKernel\KernelInterface;
1515
use Symfony\Component\Finder\Finder;
1616
use Symfony\Component\Templating\TemplateNameParserInterface;
17+
use Symfony\Component\Templating\TemplateReferenceInterface;
1718
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
1819

1920
/**

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)