Skip to content

Commit 69bd32b

Browse files
authored
Aktualisiere PHP-CS-Fixer auf v3.62.0 (#36)
1 parent 8c8f5bb commit 69bd32b

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

.github/workflows/fix-cs-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
ref: ${{ github.head_ref }}
2222

2323
- name: Run PHP-CS-Fixer
24-
uses: docker://oskarstark/php-cs-fixer-ga:3.11.0
24+
uses: docker://ghcr.io/webfactory/php-cs-fixer:3.62.0
2525

2626
- name: Commit and push back changes
2727
uses: stefanzweifel/git-auto-commit-action@v4

src/Controller/GuideController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class GuideController
4242
/**
4343
* @param Twig_Environment|Environment $twig
4444
*/
45-
public function __construct(array $shortcodeTags, $twig, FormFactoryInterface $formFactory = null)
45+
public function __construct(array $shortcodeTags, $twig, ?FormFactoryInterface $formFactory = null)
4646
{
4747
$this->shortcodeTags = array_combine(array_map(function (array $definition): string { return $definition['shortcode']; }, $shortcodeTags), $shortcodeTags);
4848
$this->twig = $twig;

src/Handler/EmbeddedShortcodeHandler.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@ class EmbeddedShortcodeHandler
3434
private $requestStack;
3535

3636
/**
37-
* @param string $controllerName
38-
* @param string $renderer
39-
* @param LoggerInterface $logger
37+
* @param string $controllerName
38+
* @param string $renderer
4039
*/
4140
public function __construct(
4241
FragmentHandler $fragmentHandler,
4342
$controllerName,
4443
$renderer,
4544
RequestStack $requestStack,
46-
LoggerInterface $logger = null
45+
?LoggerInterface $logger = null
4746
) {
4847
$this->fragmentHandler = $fragmentHandler;
4948
$this->controllerName = $controllerName;

tests/Fixtures/Controller/ShortcodeTestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class ShortcodeTestController
88
{
9-
public function test(string $foo = null): Response
9+
public function test(?string $foo = null): Response
1010
{
1111
return new Response('test'.($foo ? ' foo='.$foo : ''));
1212
}

tests/Functional/EmbeddedShortcodeHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function provideEsiShortcodes(): Generator
6464
yield 'ESI-based shortcode defined in service configuration' => ['test-service-esi'];
6565
}
6666

67-
private function processShortcodes(string $content, Request $request = null): string
67+
private function processShortcodes(string $content, ?Request $request = null): string
6868
{
6969
self::bootKernel();
7070

tests/Functional/EndToEndTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function provideEsiShortcodes(): Generator
7272
yield 'ESI-based shortcode defined in service configuration' => ['test-service-esi'];
7373
}
7474

75-
private function renderTwig(string $templateCode, array $context = [], Request $request = null): string
75+
private function renderTwig(string $templateCode, array $context = [], ?Request $request = null): string
7676
{
7777
self::bootKernel();
7878
$container = static::getContainer();

0 commit comments

Comments
 (0)