Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e351468

Browse files
pamilZales0123
authored andcommitted
Update PHPStan and its configuration
1 parent 660b116 commit e351468

3 files changed

Lines changed: 3 additions & 40 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@
133133
"mockery/mockery": "^1.4",
134134
"pamil/prophecy-common": "^0.1",
135135
"phpspec/phpspec": "^7.0",
136-
"phpstan/phpstan": "0.12.29",
137-
"phpstan/phpstan-doctrine": "0.12.16",
136+
"phpstan/phpstan": "0.12.56",
137+
"phpstan/phpstan-doctrine": "0.12.22",
138138
"phpunit/phpunit": "^8.5",
139139
"psalm/plugin-mockery": "0.6.1",
140140
"psr/event-dispatcher": "^1.0",

phpstan.neon

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ parameters:
55
reportUnmatchedIgnoredErrors: false
66

77
excludes_analyse:
8-
# Makes PHPStan crash
9-
- '**/DependencyInjection/Configuration.php'
10-
118
# Test dependencies
12-
- '**/Bundle/*/spec/**.php'
9+
- '**/spec/**.php'
1310
- '**/Bundle/*/test/app/**.php'
1411
- '**/Bundle/*/test/src/**.php'
1512
- '**/Bundle/*/Tests/Functional/app/**.php'
@@ -19,33 +16,8 @@ parameters:
1916
- '**/Bundle/*/vendor/**.php'
2017
- '**/Component/*/vendor/**.php'
2118

22-
# These packages aren't in require-dev of the global package
23-
- '**MongoDB**'
24-
- '**ODM**'
25-
2619
# Deprecated classes
2720
- 'src/Sylius/Bundle/CoreBundle/Application/Kernel.php'
2821

2922
ignoreErrors:
30-
# Magic calls
31-
- '/Call to an undefined method Faker\\Generator::/'
32-
- '/Access to an undefined property Faker\\Generator::/'
33-
- '/Method Mockery\\MockInterface::shouldReceive\(\) invoked with 1 parameter, 0 required/'
34-
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface/'
35-
- '/Call to an undefined method Mockery\\ExpectationInterface|Mockery\\HigherOrderMessage::/'
36-
37-
# PhpSpec related errors
38-
- '/Access to an undefined property spec\\/'
39-
- '/Call to an undefined method spec\\/'
40-
- '/Call to an undefined static method spec\\/'
41-
42-
# These packages aren't in require-dev of the global package
43-
- '/Class Doctrine\\Bundle\\MongoDBBundle/'
44-
- '/Class Doctrine\\Bundle\\PHPCRBundle/'
45-
46-
# Symfony 4.0 BC layer
47-
- '/Symfony\\Component\\ExpressionLanguage\\ParserCache\\ParserCacheInterface/'
48-
- '/Symfony\\Component\\ExpressionLanguage\\ParserCache\\ParserCacheAdapter/'
49-
- '/Class Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder does not have a constructor and must be instantiated without any parameters/'
50-
5123
- '/Access to an undefined property Doctrine\\Common\\Collections\\ArrayCollection/'

symfony.lock

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,9 +1036,6 @@
10361036
"symfony/yaml": {
10371037
"version": "v4.4.13"
10381038
},
1039-
"symplify/auto-bind-parameter": {
1040-
"version": "v8.2.9"
1041-
},
10421039
"symplify/autowire-array-parameter": {
10431040
"version": "v8.2.9"
10441041
},
@@ -1054,12 +1051,6 @@
10541051
"symplify/package-builder": {
10551052
"version": "8.2.21"
10561053
},
1057-
"symplify/parameter-name-guard": {
1058-
"version": "v8.2.1"
1059-
},
1060-
"symplify/phpstan-extensions": {
1061-
"version": "v8.1.19"
1062-
},
10631054
"symplify/set-config-resolver": {
10641055
"version": "8.2.21"
10651056
},

0 commit comments

Comments
 (0)