Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
vampy committed Apr 16, 2019
1 parent 3b4009c commit 4df0709
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions phpstan/config.phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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\.$~'

Expand Down
1 change: 1 addition & 0 deletions tools/dev-precommit.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
./vendor/bin/phpunit --configuration phpunit.xml
composer phpcs
composer phpstan

0 comments on commit 4df0709

Please sign in to comment.