Skip to content

Commit 405a825

Browse files
authored
Enable CI for PHP 8.2 (#38)
* Enable CI for PHP 8.2 * Refactor ArrayHelper::getColumn() to pass tests for PHP 8.0+
1 parent 5b4b6e3 commit 405a825

File tree

4 files changed

+374
-204
lines changed

4 files changed

+374
-204
lines changed

.drone.jsonnet

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ local composer(phpversion, params) = {
2525
local phpunit(phpversion) = {
2626
name: "PHPUnit",
2727
image: "joomlaprojects/docker-images:php" + phpversion,
28-
[if phpversion == "8.0" then "failure"]: "ignore",
28+
[if phpversion == "8.2" then "failure"]: "ignore",
2929
commands: ["vendor/bin/phpunit"]
3030
};
3131

@@ -60,8 +60,7 @@ local pipeline(name, phpversion, params) = {
6060
image: "joomlaprojects/docker-images:php7.4",
6161
depends: [ "composer" ],
6262
commands: [
63-
"vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards",
64-
"vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml src/"
63+
"vendor/bin/phpcs --standard=ruleset.xml"
6564
]
6665
},
6766
{
@@ -110,5 +109,7 @@ local pipeline(name, phpversion, params) = {
110109
pipeline("7.2", "7.2", "--prefer-stable"),
111110
pipeline("7.3", "7.3", "--prefer-stable"),
112111
pipeline("7.4", "7.4", "--prefer-stable"),
113-
pipeline("8.0", "8.0", "--ignore-platform-reqs --prefer-stable")
112+
pipeline("8.0", "8.0", "--prefer-stable"),
113+
pipeline("8.1", "8.1", "--prefer-stable"),
114+
pipeline("8.2", "8.2", "--prefer-stable --ignore-platform-reqs"),
114115
]

0 commit comments

Comments
 (0)