Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a dev dependency for php-cs-fixer #236

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,24 @@ jobs:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
- uses: actions/checkout@v4
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
args: --dry-run
coverage: "none"
php-version: "8.3"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix --dry-run

phpstan:
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: "actions/checkout@master"
uses: "actions/checkout@v4"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vendor/
bin/phpunit
.php-cs-fixer.cache
.phpunit.result.cache
composer.lock
bin/doctrine-dbal
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true, # PHPStan will complain about missing types otherwise
'allow_mixed' => true, // PHPStan will complain about missing types otherwise
],
])
->setFinder($finder)
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"require-dev": {
"doctrine/common": "^2.9|^3.0",
"doctrine/dbal": "^2.2|^3.0",
"friendsofphp/php-cs-fixer": "^3.59",
"php-amqplib/php-amqplib": "^2.9|^3.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.2",
Expand Down
Loading