Skip to content

Commit

Permalink
[#35] Add PHP 8.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
xserrat committed Nov 20, 2021
1 parent 6d15866 commit 98d7679
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/coding-standards.yml
Expand Up @@ -21,6 +21,7 @@ jobs:
php-version:
- "7.4"
- "8.0"
- "8.1"
operating-system:
- "ubuntu-latest"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mutation-tests.yml
Expand Up @@ -21,6 +21,7 @@ jobs:
php-version:
- "7.4"
- "8.0"
- "8.1"
operating-system:
- "ubuntu-latest"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/phpunit.yml
Expand Up @@ -21,6 +21,7 @@ jobs:
php-version:
- "7.4"
- "8.0"
- "8.1"
operating-system:
- "ubuntu-latest"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/psalm.yml
Expand Up @@ -21,6 +21,7 @@ jobs:
php-version:
- "7.4"
- "8.0"
- "8.1"
operating-system:
- "ubuntu-latest"

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -16,11 +16,12 @@
}
],
"require": {
"php": "^7.4|^8.0"
"php": "^7.4|>=8.0"
},
"require-dev": {
"icanhazstring/composer-unused": "^0.7.5",
"infection/infection": "^0.25",
"phpcompatibility/php-compatibility": "^9.3",
"phpro/grumphp": "^1.0",
"phpstan/phpstan": "^1.0",
"phpunit/phpunit": "^8.0 || ^9.0",
Expand Down
5 changes: 5 additions & 0 deletions phpcs.xml.dist
Expand Up @@ -6,6 +6,11 @@
<arg value="p"/>
<arg name="colors"/>

<!-- php compatibility checker config -->
<rule ref="PHPCompatibility"/>
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<config name="testVersion" value="7.4-"/>

<!-- inherit rules from: -->
<rule ref="PSR12"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
Expand Down

0 comments on commit 98d7679

Please sign in to comment.