From 84c95bdef64c7d69b468de0a2f3dd7bc1f19513a Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Sun, 29 Oct 2023 15:47:24 -0500 Subject: [PATCH] Add phpstan to ci --- .github/workflows/ci.yml | 3 +++ composer.json | 1 + phpstan.neon | 6 ++++++ 3 files changed, 10 insertions(+) create mode 100644 phpstan.neon diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3c699f..9201dbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,6 @@ jobs: - name: Test with phpunit run: vendor/bin/phpunit + + - name: Test with phpstan + run: vendor/bin/phpstan diff --git a/composer.json b/composer.json index 0792f60..87415c5 100644 --- a/composer.json +++ b/composer.json @@ -36,6 +36,7 @@ "friendsofphp/php-cs-fixer": "^3.1", "squizlabs/php_codesniffer": "^3.6", "corpus/coding-standard": "^0.6.0 || ^0.8.0", + "phpstan/phpstan": "^1.10", "ext-curl": "*" }, "config": { diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..2dae6bf --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,6 @@ +parameters: + level: 5 + paths: + - src + - server + phpVersion: 70100