Skip to content

Commit

Permalink
bump PHP compat
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Jun 28, 2024
1 parent a590bd9 commit 85ca70c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ os:
dist: "bionic"

php:
- "8.1"
- "8.0"
- "7.4"
- "7.3"
- "7.2"

jobs:
include:
-
php: "8.1"
dist: "jammy"
addons:
apt:
packages:
- "libonig5"
php: "8.3"
script:
- "composer run test:cs"
-
Expand Down
6 changes: 4 additions & 2 deletions PSR12NeutronRuleset/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
<exclude name="WordPress.WhiteSpace.CastStructureSpacing"/>
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing"/>
<exclude name="WordPress.WhiteSpace.DisallowInlineTabs"/>
<exclude name="Universal.WhiteSpace.DisallowInlineTabs"/>
<exclude name="WordPress.WhiteSpace.OperatorSpacing"/>
<exclude name="WordPress.WhiteSpace.PrecisionAlignment"/>
<exclude name="Universal.WhiteSpace.PrecisionAlignment"/>
<exclude name="NormalizedArrays.Arrays.ArrayBraceSpacing"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<exclude name="WordPress.NamingConventions.ValidFunctionName"/>
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
<!-- Prefer Generic.PHP.NoSilencedErrors -->
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "Hybrid PHPCS ruleset for OOP WordPress development",
"license": "MIT",
"require": {
"php": "^7.2 || ^8.0",
"php": "^7.4 || ^8.0",
"squizlabs/php_codesniffer": "^3.8",
"automattic/phpcs-neutron-ruleset": "^3.4",
"slevomat/coding-standard": "^8.0"
"slevomat/coding-standard": "^8.0",
"wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
},
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0"
Expand Down

0 comments on commit 85ca70c

Please sign in to comment.