Skip to content

Commit

Permalink
[CI] [Backport 12.4] Lint code with PHP 8.4 (#4776)
Browse files Browse the repository at this point in the history
Releases: main, 12.4
  • Loading branch information
brotkrueml committed Sep 24, 2024
1 parent bbd85e1 commit 548b58d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
5 changes: 3 additions & 2 deletions Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ Options:
If not specified, podman will be used if available. Otherwise, docker is used.
-p <8.1|8.2|8.3>
-p <8.1|8.2|8.3|8.4>
Specifies the PHP minor version to be used
- 8.1: (default) use PHP 8.1
- 8.2: use PHP 8.2
- 8.3: use PHP 8.3
- 8.4: use PHP 8.4
-n
Only with -s cgl, composerNormalize, rector
Activate dry-run in CGL check and composer normalize that does not actively change files and only prints broken ones.
Expand Down Expand Up @@ -120,7 +121,7 @@ while getopts "b:s:p:xy:nhu" OPT; do
;;
p)
PHP_VERSION=${OPTARG}
if ! [[ ${PHP_VERSION} =~ ^(8.1|8.2|8.3)$ ]]; then
if ! [[ ${PHP_VERSION} =~ ^(8.1|8.2|8.3|8.4)$ ]]; then
INVALID_OPTIONS+=("p ${OPTARG}")
fi
;;
Expand Down

0 comments on commit 548b58d

Please sign in to comment.