Skip to content

Commit fcd9457

Browse files
committed
skip rector, to avoid circular dep
1 parent 3268c1e commit fcd9457

File tree

4 files changed

+11
-131
lines changed

4 files changed

+11
-131
lines changed

composer-dependency-analyser.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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]);

src/NodeFactory/ExpectExceptionMethodCallFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PhpParser\Node\Name\FullyQualified;
1515
use PhpParser\Node\Stmt\Class_;
1616
use PhpParser\Node\Stmt\Expression;
17-
use Rector\Exception\ShouldNotHappenException;
1817
use Rector\PhpSpecToPHPUnit\Enum\PHPUnitMethodName;
1918
use Rector\PhpSpecToPHPUnit\ValueObject\DuringAndRelatedMethodCall;
2019
use Rector\PhpSpecToPHPUnit\ValueObject\TestedObject;

src/NodeFactory/LetMockNodeFactory.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use PhpParser\Node\Stmt\Expression;
1616
use PhpParser\Node\Stmt\Property;
1717
use PHPStan\Type\ObjectType;
18-
use Rector\Exception\ShouldNotHappenException;
1918
use Rector\NodeNameResolver\NodeNameResolver;
2019
use Rector\PhpParser\Node\NodeFactory;
2120
use 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));

src/PHPUnit/PHPUnitResultAnalyzer.php

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)