From 5596830d2103709b02f566fb4d84bb5acdbb4823 Mon Sep 17 00:00:00 2001 From: fogelito Date: Mon, 7 Nov 2022 19:44:15 +0200 Subject: [PATCH] php stan add .neon file --- phpstan.neon | 4 ++++ pint.json | 5 ++++- src/Adapter/SwooleClient.php | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 phpstan.neon diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000000..e0629c9276 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,4 @@ +parameters: + paths: + - src + level: 6 \ No newline at end of file diff --git a/pint.json b/pint.json index ef654c64d1..940cc35bf1 100644 --- a/pint.json +++ b/pint.json @@ -1,3 +1,6 @@ { - "preset": "psr12" + "preset": "psr12", + "exclude": [ + "tests/" + ] } \ No newline at end of file diff --git a/src/Adapter/SwooleClient.php b/src/Adapter/SwooleClient.php index c0f9386f0e..9dce323acd 100644 --- a/src/Adapter/SwooleClient.php +++ b/src/Adapter/SwooleClient.php @@ -2,7 +2,6 @@ namespace Utopia\Mongo\Adapter; -use Swoole\Client; use Utopia\Mongo\Adapter; class SwooleClient extends Adapter