Skip to content

Commit

Permalink
feat: PHP 8.3 support.
Browse files Browse the repository at this point in the history
* feat: Refactored for better maintaining.

* feat: Incorporated feedback.

* feat: PHP 8.3 support.

* feat: PHP 8.3 support.

* deps: Support PHP 8.1+.
  • Loading branch information
pmysiak authored Nov 26, 2024
1 parent ece4363 commit d2fae23
Show file tree
Hide file tree
Showing 30 changed files with 86 additions and 1,390 deletions.
3 changes: 0 additions & 3 deletions .allowed-licenses

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,4 @@ jobs:
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Check vendor licenses
run: composer run-script lic-check
run: composer install --prefer-dist --no-progress --no-interaction
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Create a file named `phpcs.ruleset.xml` to the root folder of your project with

<description>PixelFederation rule set.</description>

<config name="testVersion" value="7.2-7.4"/><!-- insert your php version -->
<config name="testVersion" value="8.1"/><!-- insert your php version -->
<exclude-pattern>tests/</exclude-pattern>
<rule ref="vendor/pixelfederation/coding-standards/phpcs.ruleset.xml">
<!-- old projects may want to exclude these rules: -->
Expand All @@ -39,17 +39,6 @@ Create a file named `phpcs.ruleset.xml` to the root folder of your project with
</property>
</properties>
</rule>

<!-- include for PHP 7.2- -->
<!-- <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"/>-->

<!-- include for PHP 7.3+ -->
<!-- <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>-->

<!-- include for PHP 7.4+ -->
<!-- <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"/>-->
<!-- <rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>-->

</ruleset>
```

Expand Down
18 changes: 7 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@
}
],
"require": {
"php": "~7.4.0|^8.1",
"php": "^8.1",
"phpcompatibility/php-compatibility": "^9.3.5",
"slevomat/coding-standard": "^8.12.1",
"squizlabs/php_codesniffer": "^3.7.2"
},
"require-dev": {
"madewithlove/license-checker": "^0.10.0"
},
"autoload": {
"psr-4": {
"PixelFederation\\CodingStandards\\": "src/"
Expand All @@ -31,12 +28,11 @@
}
},
"scripts": {
"phpcs7.4": "phpcs --standard=src/phpcs.ruleset.xml --extensions=php --tab-width=4 -sp --colors src/Example/Php74",
"phpcs8.1": "phpcs --standard=src/phpcs.ruleset.81.xml src/Example/Php81",
"phpcs8.2": "phpcs --standard=src/phpcs.ruleset.82.xml src/Example/Php82",
"phpcbf7.4": "phpcbf --standard=src/phpcs.ruleset.xml --extensions=php --tab-width=4 -sp src/Example/Php74",
"phpcbf8.1": "phpcbf --standard=src/phpcs.ruleset.81.xml src/Example/Php81",
"phpcbf8.2": "phpcbf --standard=src/phpcs.ruleset.82.xml src/Example/Php82",
"lic-check": "license-checker check"
"phpcs8.1": "phpcs --standard=phpcs.ruleset.81.xml src/Example",
"phpcs8.2": "phpcs --standard=phpcs.ruleset.82.xml src/Example",
"phpcs8.3": "phpcs --standard=phpcs.ruleset.83.xml src/Example",
"phpcbf8.1": "phpcbf --standard=phpcs.ruleset.81.xml src/Example",
"phpcbf8.2": "phpcbf --standard=phpcs.ruleset.82.xml src/Example",
"phpcbf8.3": "phpcbf --standard=phpcs.ruleset.83.xml src/Example"
}
}
Loading

0 comments on commit d2fae23

Please sign in to comment.