Allow execution of cs-fixer with PHP 8.2

This commit is contained in:
Daniel Siepmann 2023-05-11 08:53:44 +02:00
parent feeb7d4235
commit 507176bd23
3 changed files with 31 additions and 3 deletions

View file

@ -95,7 +95,7 @@ jobs:
run: composer install --prefer-dist --no-progress
- name: Coding Guideline
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff
run: PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --dry-run --diff
tests-mysql:
runs-on: ubuntu-latest

View file

@ -0,0 +1,28 @@
2.6.0
=====
Breaking
--------
Nothing
Features
--------
Nothing
Fixes
-----
Nothing
Tasks
-----
* Ignore PHP version when executing cs fixer.
As cs fixer officially does not seem to support PHP 8.2 yet.
Deprecation
-----------
Nothing

View file

@ -55,7 +55,7 @@ let
php
];
text = ''
./vendor/bin/php-cs-fixer fix --dry-run --diff
PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --dry-run --diff
'';
};
projectCglFix = pkgs.writeShellApplication {
@ -64,7 +64,7 @@ let
php
];
text = ''
./vendor/bin/php-cs-fixer fix --diff
PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --diff
'';
};