From f37d7e328498d32ab949d8ee753c9e0f508ffda1 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Mon, 2 Dec 2024 12:39:21 +0100 Subject: [PATCH 1/3] Updating phpstan to 2.0 --- .drone.jsonnet | 2 +- .drone.yml | 2 +- composer.json | 3 ++- phpstan.neon | 10 ++++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 phpstan.neon diff --git a/.drone.jsonnet b/.drone.jsonnet index e13974c7..170c178c 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -77,7 +77,7 @@ local pipeline(name, phpversion, params) = { depends: [ "composer" ], failure: "ignore", commands: [ - "vendor/bin/phpstan analyse src", + "./vendor/bin/phpstan", ] }, { diff --git a/.drone.yml b/.drone.yml index 557cb42b..1f89f067 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,7 +24,7 @@ steps: image: joomlaprojects/docker-images:php8.1-ast name: phan - commands: - - vendor/bin/phpstan analyse src + - ./vendor/bin/phpstan depends: - composer failure: ignore diff --git a/composer.json b/composer.json index 0efb7103..58b93d2d 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,8 @@ "joomla/console": "^3.0", "phpunit/phpunit": "^9.5.28", "squizlabs/php_codesniffer": "^3.7.2", - "phpstan/phpstan": "^1.10.7", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0", "phan/phan": "^5.4.2" }, "conflict": { diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 00000000..07d82270 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,10 @@ + +includes: + - vendor/phpstan/phpstan-deprecation-rules/rules.neon + +parameters: + level: 5 + phpVersion: 80100 + reportUnmatchedIgnoredErrors: false + paths: + - src From b03ee0f01d88c57746780a62eb2455ae01a511dd Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Mon, 2 Dec 2024 14:01:11 +0100 Subject: [PATCH 2/3] Sign drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1f89f067..083a6636 100644 --- a/.drone.yml +++ b/.drone.yml @@ -110,6 +110,6 @@ volumes: name: composer-cache --- kind: signature -hmac: 04a56e2b830a777ae075d8359c67f03a16ef0345ce7d2871a2cbd12a9a936906 +hmac: 9a38bcbb5dcfa02e954618635c37473975f97c2f0b532fc65b44acce05867d30 ... From 3e979202ef49fcfd5f1f3f07e0c189a63541f2e0 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Mon, 2 Dec 2024 16:00:21 +0100 Subject: [PATCH 3/3] Adding PHP 8.3/8.4 everywhere --- .drone.jsonnet | 2 ++ .drone.yml | 43 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 170c178c..d9a7bbdf 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -103,4 +103,6 @@ local pipeline(name, phpversion, params) = { pipeline("8.1 lowest", "8.1", "--prefer-stable --prefer-lowest"), pipeline("8.1", "8.1", "--prefer-stable"), pipeline("8.2", "8.2", "--prefer-stable"), + pipeline("8.3", "8.3", "--prefer-stable"), + pipeline("8.4", "8.4", "--prefer-stable"), ] diff --git a/.drone.yml b/.drone.yml index 083a6636..31f5a4da 100644 --- a/.drone.yml +++ b/.drone.yml @@ -109,7 +109,48 @@ volumes: path: /tmp/composer-cache name: composer-cache --- +kind: pipeline +name: PHP 8.3 +steps: +- commands: + - php -v + - composer update --prefer-stable + image: joomlaprojects/docker-images:php8.3 + name: composer + volumes: + - name: composer-cache + path: /tmp/composer-cache +- commands: + - vendor/bin/phpunit + failure: ignore + image: joomlaprojects/docker-images:php8.3 + name: PHPUnit +volumes: +- host: + path: /tmp/composer-cache + name: composer-cache +--- +kind: pipeline +name: PHP 8.4 +steps: +- commands: + - php -v + - composer update --prefer-stable + image: joomlaprojects/docker-images:php8.4 + name: composer + volumes: + - name: composer-cache + path: /tmp/composer-cache +- commands: + - vendor/bin/phpunit + image: joomlaprojects/docker-images:php8.4 + name: PHPUnit +volumes: +- host: + path: /tmp/composer-cache + name: composer-cache +--- kind: signature -hmac: 9a38bcbb5dcfa02e954618635c37473975f97c2f0b532fc65b44acce05867d30 +hmac: c12139218265fae9ac4bff80508b15054175478dfedfe8976dab160ff541c81c ...