diff --git a/phpstan/config.phpstan.neon b/phpstan/config.phpstan.neon index dc16c6ae..2b2d7c1a 100644 --- a/phpstan/config.phpstan.neon +++ b/phpstan/config.phpstan.neon @@ -16,15 +16,15 @@ parameters: - upload.php ignoreErrors: - - - message: '~^If condition is always true\.$~' - path: 'include/ClientSession.class.php' - - - message: '~^If condition is always true\.$~' - path: 'include/Statistic.class.php' - - - message: '~^Offset int does not exist on array\(\)\|array\(int\)\.$~' - path: 'include/StkImage.class.php' +# - +# message: '~^If condition is always true\.$~' +# path: 'include/ClientSession.class.php' +# - +# message: '~^If condition is always true\.$~' +# path: 'include/Statistic.class.php' +# - +# message: '~^Offset int does not exist on array\(\)\|array\(int\)\.$~' +# path: 'include/StkImage.class.php' - '~^Parameter \#2 \$value of method XMLWriter::writeAttribute\(\) expects string, (?:int|float) given\.$~' - '~^Parameter \#2 \$value of method XMLWriter::writeAttribute\(\) expects string, \(int\|false\) given\.$~' diff --git a/tools/dev-precommit.sh b/tools/dev-precommit.sh index c245408b..421d6690 100755 --- a/tools/dev-precommit.sh +++ b/tools/dev-precommit.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash +./vendor/bin/phpunit --configuration phpunit.xml composer phpcs composer phpstan