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

Skip to content

Commit e473aa8

Browse files
committed
[2.7] Fix issues reported by static analyse
1 parent 0f353ad commit e473aa8

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/Symfony/Bridge/Twig/TwigEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function supports($name)
112112
* @param string|TemplateReferenceInterface|\Twig_Template $name A template name or an instance of
113113
* TemplateReferenceInterface or \Twig_Template
114114
*
115-
* @return \Twig_TemplateInterface A \Twig_TemplateInterface instance
115+
* @return \Twig_Template A \Twig_Template instance
116116
*
117117
* @throws \InvalidArgumentException if the template does not exist
118118
*/

src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getName(Profile $profile, $panel)
6767
*
6868
* @param Profile $profile
6969
*
70-
* @return Twig_Template[]
70+
* @return \Twig_Template[]
7171
*
7272
* @deprecated not used anymore internally
7373
*/

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

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

1414
use Symfony\Component\HttpFoundation\Cookie;
15+
use Symfony\Component\HttpFoundation\Session\SessionInterface;
1516
use Symfony\Component\HttpKernel\KernelEvents;
1617
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
1718
use Symfony\Component\HttpKernel\Event\GetResponseEvent;

src/Symfony/Component/Serializer/Mapping/Loader/YamlFileLoader.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
7979

8080
if (isset($data['groups'])) {
8181
if (!is_array($data['groups'])) {
82-
throw new MappingException('The "groups" key must be an array of strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
82+
throw new MappingException(sprintf('The "groups" key must be an array of strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
8383
}
8484

8585
foreach ($data['groups'] as $group) {
8686
if (!is_string($group)) {
87-
throw new MappingException('Group names must be strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
87+
throw new MappingException(sprintf('Group names must be strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
8888
}
8989

9090
$attributeMetadata->addGroup($group);

0 commit comments

Comments
 (0)