Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite473aa8

Browse files
committed
[2.7] Fix issues reported by static analyse
1 parent0f353ad commite473aa8

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

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

Lines 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‎

Lines 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‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespaceSymfony\Component\HttpKernel\EventListener;
1313

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

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

Lines 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-
thrownewMappingException('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+
thrownewMappingException(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-
thrownewMappingException('Group names must be strings in "%s" for the attribute "%s" of the class "%s".',$this->file,$attribute,$classMetadata->getName());
87+
thrownewMappingException(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)

[8]ページ先頭

©2009-2025 Movatter.jp