Skip to content

Commit

Permalink
Updating phpstan to 2.0 (#51)
Browse files Browse the repository at this point in the history
* Updating phpstan to 2.0
* Adding PHP 8.3/8.4 everywhere
  • Loading branch information
Hackwar authored Dec 10, 2024
1 parent 919a3d9 commit e33cf9a
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ local pipeline(name, phpversion, params) = {
depends: [ "composer" ],
failure: "ignore",
commands: [
"vendor/bin/phpstan analyse src",
"./vendor/bin/phpstan",
]
},
{
Expand All @@ -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"),
]
45 changes: 43 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: 359f132c744f714b1f25b942977ed4e7b71d08b578b028134469f9d7546c5a88
hmac: c2a8a81e44011086f9f921bbc07769c0c52e98715b70002ef06da1d8fbca08e9

...
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"joomla/test": "^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": {
Expand Down
10 changes: 10 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon

parameters:
level: 5
phpVersion: 80100
reportUnmatchedIgnoredErrors: false
paths:
- src

0 comments on commit e33cf9a

Please sign in to comment.