Skip to content

Commit ba91039

Browse files
committed
Fix CS
1 parent 7b5e618 commit ba91039

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎src/Analyser/ExprHandler/ArrayDimFetchHandler.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function resolveType(MutatingScope $scope, Expr $expr): Type
5151

5252
if (
5353
!$offsetAccessibleType->isArray()->yes()
54-
&& (new ObjectType(\ArrayAccess::class))->isSuperTypeOf($offsetAccessibleType)->yes()
54+
&& (new ObjectType(ArrayAccess::class))->isSuperTypeOf($offsetAccessibleType)->yes()
5555
) {
5656
return NullsafeShortCircuitingHelper::getType(
5757
$scope,

‎src/Analyser/MutatingScope.php‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PHPStan\Analyser;
44

5-
use ArrayAccess;
65
use Closure;
76
use Generator;
87
use PhpParser\Node;
@@ -5688,7 +5687,7 @@ private function getStaticPropertyFetchType(Expr\StaticPropertyFetch $node): ?Ty
56885687
$nativeType = $propertyReflection->getNativeType();
56895688

56905689
if ($node->class instanceof Expr) {
5691-
return NullsafeShortCircuitingHelper::getType($this,$node->class, $nativeType);
5690+
return NullsafeShortCircuitingHelper::getType($this, $node->class, $nativeType);
56925691
}
56935692

56945693
return $nativeType;
@@ -5710,7 +5709,7 @@ private function getStaticPropertyFetchType(Expr\StaticPropertyFetch $node): ?Ty
57105709
}
57115710

57125711
if ($node->class instanceof Expr) {
5713-
return NullsafeShortCircuitingHelper::getType($this,$node->class, $fetchType);
5712+
return NullsafeShortCircuitingHelper::getType($this, $node->class, $fetchType);
57145713
}
57155714

57165715
return $fetchType;
@@ -5743,7 +5742,7 @@ private function getPropertyFetchType(PropertyFetch $node): ?Type
57435742

57445743
$nativeType = $propertyReflection->getNativeType();
57455744

5746-
return NullsafeShortCircuitingHelper::getType($this,$node->var, $nativeType);
5745+
return NullsafeShortCircuitingHelper::getType($this, $node->var, $nativeType);
57475746
}
57485747

57495748
$returnType = $this->propertyFetchType(
@@ -5755,7 +5754,7 @@ private function getPropertyFetchType(PropertyFetch $node): ?Type
57555754
$returnType = new ErrorType();
57565755
}
57575756

5758-
return NullsafeShortCircuitingHelper::getType($this,$node->var, $returnType);
5757+
return NullsafeShortCircuitingHelper::getType($this, $node->var, $returnType);
57595758
}
57605759

57615760
$nameType = $this->getType($node->name);
@@ -5792,7 +5791,7 @@ private function getStaticCallType(Expr\StaticCall $node): ?Type
57925791
}
57935792

57945793
if ($node->class instanceof Expr) {
5795-
return NullsafeShortCircuitingHelper::getType($this,$node->class, $callType);
5794+
return NullsafeShortCircuitingHelper::getType($this, $node->class, $callType);
57965795
}
57975796

57985797
return $callType;
@@ -5814,7 +5813,7 @@ private function getStaticCallType(Expr\StaticCall $node): ?Type
58145813
}
58155814

58165815
if ($node->class instanceof Expr) {
5817-
return NullsafeShortCircuitingHelper::getType($this,$node->class, $callType);
5816+
return NullsafeShortCircuitingHelper::getType($this, $node->class, $callType);
58185817
}
58195818

58205819
return $callType;
@@ -5846,7 +5845,7 @@ private function getMethodCallType(MethodCall $node): ?Type
58465845
$returnType = ParametersAcceptorSelector::combineAcceptors($methodReflection->getVariants())->getNativeReturnType();
58475846
}
58485847

5849-
return NullsafeShortCircuitingHelper::getType($this,$node->var, $returnType);
5848+
return NullsafeShortCircuitingHelper::getType($this, $node->var, $returnType);
58505849
}
58515850

58525851
$returnType = $this->methodCallReturnType(
@@ -5857,7 +5856,7 @@ private function getMethodCallType(MethodCall $node): ?Type
58575856
if ($returnType === null) {
58585857
$returnType = new ErrorType();
58595858
}
5860-
return NullsafeShortCircuitingHelper::getType($this,$node->var, $returnType);
5859+
return NullsafeShortCircuitingHelper::getType($this, $node->var, $returnType);
58615860
}
58625861

58635862
$nameType = $this->getType($node->name);

0 commit comments

Comments
 (0)