diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a38c7a8 --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "scripts": { + "phpstan": "phpstan analyze -c phpstan.dev.neon" + } +} diff --git a/phpstan.dev.neon b/phpstan.dev.neon new file mode 100644 index 0000000..9362138 --- /dev/null +++ b/phpstan.dev.neon @@ -0,0 +1,8 @@ +parameters: + level: 5 + paths: + - lib/ + - pages/ + + ignoreErrors: + - '#.*getValueType\(\) expects class\-string, string given\.$#'