From 7a780ef7f3afe24ea4bc96388c89ab9c87a3ba9e Mon Sep 17 00:00:00 2001 From: Jakye Date: Sat, 23 Sep 2023 08:20:51 +0300 Subject: [PATCH 1/2] Added phpstan.neon config --- phpstan.neon | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 phpstan.neon diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..f106e52 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,4 @@ +parameters: + level: 6 + paths: + - src \ No newline at end of file From aa4837ab122abc4f906bb95dcf5f47a94a165744 Mon Sep 17 00:00:00 2001 From: Jakye Date: Sat, 23 Sep 2023 08:21:03 +0300 Subject: [PATCH 2/2] Added phpstan & phpunit scripts --- composer.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/composer.json b/composer.json index 1b11dd1..78f1fdb 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,14 @@ ] } }, + "scripts": { + "test": [ + "@php vendor/bin/phpunit --testdox" + ], + "phpstan": [ + "@php vendor/bin/phpstan analyse -c phpstan.neon" + ] + }, "require-dev": { "orchestra/testbench": "^8", "phpstan/phpstan": "^1.10"