Skip to content

Commit

Permalink
Update PHP-CS-Fixer to v3.11 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude authored Oct 25, 2022
1 parent c354149 commit ca7652e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fix-cs-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
ref: ${{ github.head_ref }}

- name: Run PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga:2.19.0
uses: docker://oskarstark/php-cs-fixer-ga:3.11.0

- name: Commit and push back changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Fix CS with PHP-CS-Fixer 2.19.0"
commit_message: "Fix CS with PHP-CS-Fixer"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ vendor/
composer.lock
phpunit.xml
.phpunit.result.cache
.php_cs.cache
.php-cs-fixer.cache
2 changes: 1 addition & 1 deletion .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
Expand Down
1 change: 1 addition & 0 deletions tests/Entity/NewsletterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class NewsletterTest extends TestCase
{
/**
* @test
*
* @doesNotPerformAssertions
*/
public function can_be_constructed()
Expand Down
2 changes: 2 additions & 0 deletions tests/Entity/PendingOptInTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function registrationDate_is_added_if_omitted(): void

/**
* @test
*
* @doesNotPerformAssertions
*/
public function static_construction_with_newsletters(): void
Expand All @@ -54,6 +55,7 @@ public function static_construction_with_newsletters(): void

/**
* @test
*
* @doesNotPerformAssertions
*/
public function static_construction_without_newsletters(): void
Expand Down
1 change: 1 addition & 0 deletions tests/Entity/RecipientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function static_construction_with_newsletters()

/**
* @test
*
* @doesNotPerformAssertions
*/
public function static_construction_without_newsletters()
Expand Down

0 comments on commit ca7652e

Please sign in to comment.