Skip to content

Commit d0688c5

Browse files
authored
feat: implement support of new PHP/PHPUnit migration notation (#224)
1 parent a55842f commit d0688c5

File tree

5 files changed

+274
-219
lines changed

5 files changed

+274
-219
lines changed

.circleci/config.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ install_composer: &install_composer
1414
mv composer.phar /usr/local/bin/composer
1515
1616
composer_update_with_lowest_dependencies: &composer_update_with_lowest_dependencies
17-
run: |
18-
composer update --prefer-lowest --prefer-stable
17+
run: composer update --prefer-lowest --prefer-stable
1918

2019
composer_update: &composer_update
21-
run: |
22-
composer update
20+
run: composer update
2321

24-
tests: &tests
25-
run: |
26-
composer test -vvv
27-
bin/doc
28-
PHP_CS_FIXER_IGNORE_ENV=1 composer run php-cs-fixer || (echo "Coding standards are not respected. Run 'composer run php-cs-fixer'" && exit 1)
22+
phpspec: &phpspec
23+
run: composer test -vvv
24+
25+
doc: &doc
26+
run: bin/doc
27+
28+
cs: &cs
29+
run: PHP_CS_FIXER_IGNORE_ENV=1 composer run php-cs-fixer || (echo "Coding standards are not respected. Run 'composer run php-cs-fixer'" && exit 1)
2930

3031
jobs:
3132
tests:
@@ -38,7 +39,9 @@ jobs:
3839
- checkout
3940
- <<: *install_composer
4041
- <<: *composer_update
41-
- <<: *tests
42+
- <<: *phpspec
43+
- <<: *doc
44+
- <<: *cs
4245

4346
tests-with-lowest-dependencies:
4447
parameters:
@@ -50,7 +53,9 @@ jobs:
5053
- checkout
5154
- <<: *install_composer
5255
- <<: *composer_update_with_lowest_dependencies
53-
- <<: *tests
56+
# - <<: *phpspec
57+
- <<: *doc
58+
- <<: *cs
5459

5560
documentation:
5661
parameters:
@@ -94,14 +99,12 @@ workflows:
9499
matrix:
95100
parameters:
96101
php-version:
97-
- "8.2"
98102
- "8.3"
99103
- "8.4"
100104
- tests-with-lowest-dependencies:
101105
matrix:
102106
parameters:
103107
php-version:
104-
- "8.2"
105108
- "8.3"
106109
- "8.4"
107110
- release-test

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
->setRules(
1313
RuleSetFactory::create()
1414
->phpCsFixer(true)
15-
->php(8.2, true)
15+
->php(8.3, true)
1616
->pedrotroller(true)
1717
->enable('align_multiline_comment')
1818
->enable('array_indentation')

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "PHP-CS-FIXER : my custom fixers",
44
"license": "MIT",
55
"require": {
6-
"php": "^8.2",
6+
"php": "^8.3",
77
"friendsofphp/php-cs-fixer": "^3.87"
88
},
99
"require-dev": {

0 commit comments

Comments
 (0)