diff --git a/src/Properties/ComputedPropertyExtension.php b/src/Properties/ComputedPropertyExtension.php index 972668b..beca766 100644 --- a/src/Properties/ComputedPropertyExtension.php +++ b/src/Properties/ComputedPropertyExtension.php @@ -24,7 +24,7 @@ public function hasProperty(ClassReflection $classReflection, string $propertyNa return false; } - if (($classReflection->hasNativeMethod($this->getterPropertyName($propertyName)))) { + if ($classReflection->hasNativeMethod($this->getterPropertyName($propertyName))) { return true; } diff --git a/tests/stubs/TestComponentWithComputedProperties.php b/tests/stubs/TestComponentWithComputedProperties.php index 070aa1c..00d2658 100644 --- a/tests/stubs/TestComponentWithComputedProperties.php +++ b/tests/stubs/TestComponentWithComputedProperties.php @@ -62,7 +62,9 @@ public function propertyWithGenerics(): array /** * This is a comment. + * * @return array + * * @deprecated Has a description. */ public function getGetterStyleProperty(): array