File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ use ShipMonk \ComposerDependencyAnalyser \Config \Configuration ;
6+ use ShipMonk \ComposerDependencyAnalyser \Config \ErrorType ;
7+
8+ return (new Configuration ())
9+ ->ignoreErrorsOnPackage ('rector/rector ' , [ErrorType::DEV_DEPENDENCY_IN_PROD ]);
Original file line number Diff line number Diff line change 1414use PhpParser \Node \Name \FullyQualified ;
1515use PhpParser \Node \Stmt \Class_ ;
1616use PhpParser \Node \Stmt \Expression ;
17- use Rector \Exception \ShouldNotHappenException ;
1817use Rector \PhpSpecToPHPUnit \Enum \PHPUnitMethodName ;
1918use Rector \PhpSpecToPHPUnit \ValueObject \DuringAndRelatedMethodCall ;
2019use Rector \PhpSpecToPHPUnit \ValueObject \TestedObject ;
Original file line number Diff line number Diff line change 1515use PhpParser \Node \Stmt \Expression ;
1616use PhpParser \Node \Stmt \Property ;
1717use PHPStan \Type \ObjectType ;
18- use Rector \Exception \ShouldNotHappenException ;
1918use Rector \NodeNameResolver \NodeNameResolver ;
2019use Rector \PhpParser \Node \NodeFactory ;
2120use Rector \PhpSpecToPHPUnit \DocFactory ;
@@ -42,7 +41,7 @@ public function createMockProperties(array $params): array
4241 $ mockProperty = $ this ->crateMockProperty ($ parameterName );
4342
4443 if (! $ param ->type instanceof Name) {
45- throw new ShouldNotHappenException ();
44+ throw new \ Rector \ PhpSpecToPHPUnit \ Exception \ ShouldNotHappenException ();
4645 }
4746
4847 $ mockedClass = $ param ->type ->toString ();
@@ -68,7 +67,7 @@ public function createMockPropertyAssignExpressions(array $params): array
6867 foreach ($ params as $ param ) {
6968 $ parameterName = $ this ->createMockVariableName ($ param );
7069 if (! $ param ->type instanceof Name) {
71- throw new ShouldNotHappenException ();
70+ throw new \ Rector \ PhpSpecToPHPUnit \ Exception \ ShouldNotHappenException ();
7271 }
7372
7473 $ mockPropertyFetch = new PropertyFetch (new Variable ('this ' ), new Identifier ($ parameterName ));
You can’t perform that action at this time.
0 commit comments