Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4597768

Browse filesBrowse files
bug #21800 [2.7] Fix issues reported by static analyze (romainneutron)
This PR was merged into the 2.7 branch. Discussion ---------- [2.7] Fix issues reported by static analyze | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT This PR fixes invalid doc blocks (typo or missing use) and a `sprintf` issue Commits ------- e473aa8 [2.7] Fix issues reported by static analyse
2 parents 0f353ad + e473aa8 commit 4597768
Copy full SHA for 4597768

File tree

4 files changed

+5
-4
lines changed
Filter options

4 files changed

+5
-4
lines changed

‎src/Symfony/Bridge/Twig/TwigEngine.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/TwigEngine.php
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/EventListener/TestSessionListener.php
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Mapping/Loader/YamlFileLoader.php
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.