From 5a35e8774dec06b33a0c4bed44f1197ac4a37985 Mon Sep 17 00:00:00 2001 From: ArrayIterator Date: Sun, 12 Nov 2023 09:48:37 +0700 Subject: [PATCH] add phpstan --- composer.json | 3 ++- phpstan.neon | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 phpstan.neon diff --git a/composer.json b/composer.json index 4c62f35..804967f 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,8 @@ "psr/cache": "^3", "squizlabs/php_codesniffer": "3.7.2", "slevomat/coding-standard": "^8.14", - "phpunit/phpunit": "^10.4" + "phpunit/phpunit": "^10.4", + "phpstan/phpstan": "^1.10" }, "config": { "optimize-autoloader": true, diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..717aada --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,13 @@ +parameters: + level: 8 + checkGenericClassInNonGenericObjectType: false + paths: + - src + - tests + fileExtensions: + - php +# ignoreErrors: +# - +# message: '#^Method.+::[^\(]+\(\) has no return type#' +# paths: +# - src/Interfaces/* \ No newline at end of file