diff --git a/.drone.jsonnet b/.drone.jsonnet index e13974c7..d9a7bbdf 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", ] }, { @@ -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 0b8d4d90..29ec6555 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 @@ -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: 5e5d25d380c8471aa6a55d802339463ba763c8b2337c8810984e93a0c2f6b6e4 +hmac: d2d6a6466ef93f89a335bc056242f3054760b9096514d6ccec6cc2aaac83abba ... diff --git a/composer.json b/composer.json index 21c9d6ea..86c57e02 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,8 @@ "require-dev": { "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" }, "autoload": { 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