Skip to content

Commit 106ec4c

Browse files
authored
Update PHP-CS-Fixer to v3.11 (#27)
1 parent 2b06000 commit 106ec4c

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
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:2.19.0
24+
uses: docker://oskarstark/php-cs-fixer-ga:3.11.0
2525

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ composer.lock
22
vendor/
33
phpunit.xml
44
.phpunit.result.cache
5-
.php_cs.cache
5+
.php-cs-fixer.cache
66
tests/Fixtures/cache/

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
return PhpCsFixer\Config::create()
3+
return (new PhpCsFixer\Config())
44
->setRules([
55
'@Symfony' => true,
66
'@Symfony:risky' => true,

tests/Functional/EmbeddedShortcodeHandlerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function content_without_shortcodes_wont_be_changed(): void
2828

2929
/**
3030
* @test
31+
*
3132
* @dataProvider provideShortcodeNames
3233
*/
3334
public function expand_shortcodes_registered_in_different_ways(string $shortcodeName): void
@@ -46,6 +47,7 @@ public function provideShortcodeNames(): Generator
4647

4748
/**
4849
* @test
50+
*
4951
* @dataProvider provideEsiShortcodes
5052
*/
5153
public function processing_with_esi_fragments(string $shortcodeName): void

tests/Functional/EndToEndTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function content_without_shortcodes_wont_be_changed(): void
3333

3434
/**
3535
* @test
36+
*
3637
* @dataProvider provideShortcodeNames
3738
*/
3839
public function expand_shortcode_in__twig(string $shortcodeName): void
@@ -52,6 +53,7 @@ public function provideShortcodeNames(): Generator
5253

5354
/**
5455
* @test
56+
*
5557
* @dataProvider provideEsiShortcodes
5658
*/
5759
public function uses_esi_fragments(string $shortcodeName): void

tests/Functional/ShortcodeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function getRenderedExampleHtml(?array $customParameters = null): stri
4848
/**
4949
* @param array|string|null $customParameters use of strings is deprecated, use array instead.
5050
*/
51-
protected function crawlRenderedExample(/*array*/ $customParameters = null): Crawler
51+
protected function crawlRenderedExample(/* array */ $customParameters = null): Crawler
5252
{
5353
$urlWithRenderedExample = $this->getUrlWithRenderedExample($customParameters);
5454

@@ -68,7 +68,7 @@ protected function crawlRenderedExample(/*array*/ $customParameters = null): Cra
6868
*/
6969
protected function assertHttpStatusCodeWhenCrawlingRenderedExample(
7070
int $expectedStatusCode,
71-
/*array*/ $customParameters = null
71+
/* array */ $customParameters = null
7272
): Crawler {
7373
$urlWithRenderedExample = $this->getUrlWithRenderedExample($customParameters);
7474

@@ -81,7 +81,7 @@ protected function assertHttpStatusCodeWhenCrawlingRenderedExample(
8181
*
8282
* @return Crawler
8383
*/
84-
private function getUrlWithRenderedExample(/*array*/ $customParameters = null): string
84+
private function getUrlWithRenderedExample(/* array */ $customParameters = null): string
8585
{
8686
$urlParameters = ['shortcode' => $this->getShortcodeToTest()];
8787

0 commit comments

Comments
 (0)