Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating phpstan to 2.0 #41

Open
wants to merge 3 commits into
base: 3.x-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 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 @@ -104,4 +104,5 @@ local pipeline(name, phpversion, params) = {
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"),
]
25 changes: 23 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 @@ -129,7 +129,28 @@ volumes:
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
failure: ignore
image: joomlaprojects/docker-images:php8.4
name: PHPUnit
volumes:
- host:
path: /tmp/composer-cache
name: composer-cache
---
kind: signature
hmac: 44494eb95c9ccb71ac8b365e9422d0fd3e0dd946a21c606f70ac73952fe01bc6
hmac: 7768f63b23894743b6b8dfbbc8329a07e2128dd35a154e4aedcff16f4d17c4e0

...
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"phpunit/phpunit": "^9.5.28",
"psr/container": "^1.0",
"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"
},
"suggest": {
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