Skip to content

Commit d2fae23

Browse files
authored
feat: PHP 8.3 support.
* feat: Refactored for better maintaining. * feat: Incorporated feedback. * feat: PHP 8.3 support. * feat: PHP 8.3 support. * deps: Support PHP 8.1+.
1 parent ece4363 commit d2fae23

30 files changed

+86
-1390
lines changed

.allowed-licenses

-3
This file was deleted.

.github/workflows /php-ci.yml .github/workflows /php-ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,4 @@ jobs:
2626
${{ runner.os }}-php-
2727
2828
- name: Install dependencies
29-
run: composer install --prefer-dist --no-progress
30-
31-
- name: Check vendor licenses
32-
run: composer run-script lic-check
29+
run: composer install --prefer-dist --no-progress --no-interaction

README.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Create a file named `phpcs.ruleset.xml` to the root folder of your project with
2121

2222
<description>PixelFederation rule set.</description>
2323

24-
<config name="testVersion" value="7.2-7.4"/><!-- insert your php version -->
24+
<config name="testVersion" value="8.1"/><!-- insert your php version -->
2525
<exclude-pattern>tests/</exclude-pattern>
2626
<rule ref="vendor/pixelfederation/coding-standards/phpcs.ruleset.xml">
2727
<!-- old projects may want to exclude these rules: -->
@@ -39,17 +39,6 @@ Create a file named `phpcs.ruleset.xml` to the root folder of your project with
3939
</property>
4040
</properties>
4141
</rule>
42-
43-
<!-- include for PHP 7.2- -->
44-
<!-- <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"/>-->
45-
46-
<!-- include for PHP 7.3+ -->
47-
<!-- <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>-->
48-
49-
<!-- include for PHP 7.4+ -->
50-
<!-- <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"/>-->
51-
<!-- <rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>-->
52-
5342
</ruleset>
5443
```
5544

composer.json

+7-11
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111
}
1212
],
1313
"require": {
14-
"php": "~7.4.0|^8.1",
14+
"php": "^8.1",
1515
"phpcompatibility/php-compatibility": "^9.3.5",
1616
"slevomat/coding-standard": "^8.12.1",
1717
"squizlabs/php_codesniffer": "^3.7.2"
1818
},
19-
"require-dev": {
20-
"madewithlove/license-checker": "^0.10.0"
21-
},
2219
"autoload": {
2320
"psr-4": {
2421
"PixelFederation\\CodingStandards\\": "src/"
@@ -31,12 +28,11 @@
3128
}
3229
},
3330
"scripts": {
34-
"phpcs7.4": "phpcs --standard=src/phpcs.ruleset.xml --extensions=php --tab-width=4 -sp --colors src/Example/Php74",
35-
"phpcs8.1": "phpcs --standard=src/phpcs.ruleset.81.xml src/Example/Php81",
36-
"phpcs8.2": "phpcs --standard=src/phpcs.ruleset.82.xml src/Example/Php82",
37-
"phpcbf7.4": "phpcbf --standard=src/phpcs.ruleset.xml --extensions=php --tab-width=4 -sp src/Example/Php74",
38-
"phpcbf8.1": "phpcbf --standard=src/phpcs.ruleset.81.xml src/Example/Php81",
39-
"phpcbf8.2": "phpcbf --standard=src/phpcs.ruleset.82.xml src/Example/Php82",
40-
"lic-check": "license-checker check"
31+
"phpcs8.1": "phpcs --standard=phpcs.ruleset.81.xml src/Example",
32+
"phpcs8.2": "phpcs --standard=phpcs.ruleset.82.xml src/Example",
33+
"phpcs8.3": "phpcs --standard=phpcs.ruleset.83.xml src/Example",
34+
"phpcbf8.1": "phpcbf --standard=phpcs.ruleset.81.xml src/Example",
35+
"phpcbf8.2": "phpcbf --standard=phpcs.ruleset.82.xml src/Example",
36+
"phpcbf8.3": "phpcbf --standard=phpcs.ruleset.83.xml src/Example"
4137
}
4238
}

0 commit comments

Comments
 (0)