Skip to content

Commit 3036ba8

Browse files
Added phpstan.
1 parent 069bff0 commit 3036ba8

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^7.5 || ^8.4",
25-
"friendsofphp/php-cs-fixer": "^2.15"
25+
"friendsofphp/php-cs-fixer": "^2.15",
26+
"phpstan/phpstan": "^0.12.83"
2627
}
2728
}

phpstan.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
paths:
3+
- app
4+
level: 5
5+
ignoreErrors:
6+
- '#Result of function abort \(void\) is used\.#'
7+
- '#Method App\\Exceptions\\Handler::render\(\) should return Illuminate\\Http\\Response but returns Symfony\\Component\\HttpFoundation\\Response\.#'
8+

0 commit comments

Comments
 (0)