Skip to content

Commit 0cb8720

Browse files
committed
Removed some unnecessary @api in MutatingScope
1 parent 8384520 commit 0cb8720

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ parameters:
4343
count: 1
4444
path: src/Analyser/MutatingScope.php
4545

46-
-
47-
message: """
48-
#^Call to deprecated method doNotTreatPhpDocTypesAsCertain\\(\\) of class PHPStan\\\\Analyser\\\\MutatingScope\\:
49-
Use getNativeType\\(\\)$#
50-
"""
51-
count: 1
52-
path: src/Analyser/NodeScopeResolver.php
53-
5446
-
5547
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantBooleanType is error\\-prone and deprecated\\. Use Type\\:\\:isTrue\\(\\) or Type\\:\\:isFalse\\(\\) instead\\.$#"
5648
count: 3
@@ -417,14 +409,6 @@ parameters:
417409
count: 2
418410
path: src/Rules/Comparison/IfConstantConditionRule.php
419411

420-
-
421-
message: """
422-
#^Call to deprecated method doNotTreatPhpDocTypesAsCertain\\(\\) of interface PHPStan\\\\Analyser\\\\Scope\\:
423-
Use getNativeType\\(\\)$#
424-
"""
425-
count: 1
426-
path: src/Rules/Comparison/ImpossibleCheckTypeHelper.php
427-
428412
-
429413
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
430414
count: 2

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,8 +2639,7 @@ private function hasPropertyNativeType($propertyFetch): bool
26392639
return !$propertyReflection->getNativeType() instanceof MixedType;
26402640
}
26412641

2642-
/** @api */
2643-
protected function getTypeFromArrayDimFetch(
2642+
private function getTypeFromArrayDimFetch(
26442643
Expr\ArrayDimFetch $arrayDimFetch,
26452644
Type $offsetType,
26462645
Type $offsetAccessibleType,
@@ -5574,7 +5573,6 @@ public function getMethodReflection(Type $typeWithMethod, string $methodName): ?
55745573
return $type->getMethod($methodName, $this);
55755574
}
55765575

5577-
/** @api */
55785576
public function getNakedMethod(Type $typeWithMethod, string $methodName): ?ExtendedMethodReflection
55795577
{
55805578
$type = $this->filterTypeWithMethod($typeWithMethod, $methodName);

0 commit comments

Comments
 (0)