Skip to content

Commit 1bf41ea

Browse files
committed
Simplification
1 parent 4b4836a commit 1bf41ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Rules/TooWideTypehints/TooWideTypeCheck.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ public function checkProperty(
108108

109109
$narrowedNativeType = $this->narrowType($nativePropertyType, $assignedType, $scope, true);
110110
if (!$narrowedNativeType->equals($nativePropertyType)) {
111-
$finalPropertyType = TypehintHelper::decideType($phpDocPropertyType, $nativePropertyType);
112-
$propertyTypeDescription = $finalPropertyType->describe(VerbosityLevel::getRecommendedLevelByType($finalPropertyType));
111+
$propertyTypeDescription = $nativePropertyType->describe(VerbosityLevel::getRecommendedLevelByType($nativePropertyType));
113112
return $this->createErrors(
114113
$narrowedNativeType,
115114
$nativePropertyType,

0 commit comments

Comments
 (0)