Skip to content

Commit

Permalink
Merge pull request #7 from mediact/feature/exclude-phpstan-check-on-f…
Browse files Browse the repository at this point in the history
…actories

Remove TestFramework and Factory errors in PHPStan
  • Loading branch information
janmartenjongerius authored Jan 9, 2018
2 parents f3f63b2 + dd48d8f commit 38f2eda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/files/magento2/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parameters:
ignoreErrors:
- '#(class|type) Magento\\TestFramework#i'
- '#(class|type) Magento\\\S*Factory#i'
1 change: 1 addition & 0 deletions templates/mapping/project/magento2
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{magento2/,}phpcs.xml
{magento2/,}phpstan.neon

0 comments on commit 38f2eda

Please sign in to comment.