Skip to content

Commit 2666d4c

Browse files
committed
Use bitexpert/phpstan-magento extension
1 parent aa40feb commit 2666d4c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"phpstan/phpstan": "^0.12.0",
4848
"squizlabs/php_codesniffer": "^3.5",
4949
"magento/magento-coding-standard": "@dev",
50-
"bkubicki/magento2-unit-tests-doubles": "^1.2.0"
50+
"bkubicki/magento2-unit-tests-doubles": "^1.2.0",
51+
"bitexpert/phpstan-magento": "^0.9.0"
5152
},
5253
"scripts": {
5354
"test": [

phpstan.neon

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ parameters:
33
paths:
44
- src
55
- tests
6-
ignoreErrors:
7-
- '#(class|type) Magento\\TestFramework#i'
8-
- '#(class|type) Magento\\\S*Factory#i'
6+
parameters:
7+
bootstrapFiles:
8+
- vendor/bitexpert/phpstan-magento/autoload.php
9+
includes:
10+
- vendor/bitexpert/phpstan-magento/extension.neon

0 commit comments

Comments
 (0)