8000 minor #58494 [TwigBridge] Add missing return type (alexandre-daubois) · symfony/symfony@290b04a · GitHub
[go: up one dir, main page]

Skip to content

Commit 290b04a

Browse files
minor #58494 [TwigBridge] Add missing return type (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [TwigBridge] Add missing return type | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT If I don't miss anything, this exception could be removed from `.github/expected-missing-return-types.diff` and the return type can be added, the class is internal to Symfony. Commits ------- cf949bd [TwigBridge] Add missing return type
2 parents c16abbf + cf949bd commit 290b04a

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.github/expected-missing-return-types.diff

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ git checkout src/Symfony/Contracts/Service/ResetInterface.php
77
(echo "$head" && echo && git diff -U2 src/ | grep '^index ' -v) > .github/expected-missing-return-types.diff
88
git checkout composer.json src/
99

10-
diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php
11-
--- a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php
12-
+++ b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php
13-
@@ -49,5 +49,5 @@ abstract class AbstractLayoutTestCase extends FormLayoutTestCase
14-
* @return FormExtensionInterface[]
15-
*/
16-
- protected function getExtensions()
17-
+ protected function getExtensions(): array
18-
{
19-
return [
2010
diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
2111
--- a/src/Symfony/Component/BrowserKit/AbstractBrowser.php
2212
+++ b/src/Symfony/Component/BrowserKit/AbstractBrowser.php

src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function setUp(): void
4848
/**
4949
* @return FormExtensionInterface[]
5050
*/
51-
protected function getExtensions()
51+
protected function getExtensions(): array
5252
{
5353
return [
5454
new CsrfExtension($this->csrfTokenManager),

0 commit comments

Comments
 (0)
0