Browse Source

Use phpstan

pull/10/head
Richard Dern 3 months ago
parent
commit
13d1f1804b
  1. 3
      .drone.yml
  2. 5
      composer.json
  3. 1492
      composer.lock
  4. 12
      phpstan.neon

3
.drone.yml

@ -10,7 +10,8 @@ steps:
- name: test
image: php:8
commands:
- vendor/bin/testbench package:test
- vendor/bin/testbench package:test --parallel
- vendor/bin/phpstan analyse --memory-limit=2G
- name: gitea_release
image: plugins/gitea-release

5
composer.json

@ -20,7 +20,8 @@
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.3",
"nunomaduro/collision": "^5.3",
"brianium/paratest": "^6.3"
"brianium/paratest": "^6.3",
"nunomaduro/larastan": "^0.7.12"
},
"autoload": {
"psr-4": {
@ -61,4 +62,4 @@
"url": "https://git.athaliasoft.com/Cyca/helpers"
}
]
}
}

1492
composer.lock

File diff suppressed because it is too large

12
phpstan.neon

@ -0,0 +1,12 @@
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
paths:
- package
# The level 8 is the highest level
level: 8
checkMissingIterableValueType: false
Loading…
Cancel
Save