propertyTypeChangeGuard = $propertyTypeChangeGuard; } public function isLegal(Class_ $class, ClassReflection $classReflection, Property $property, Param $param, bool $inlinePublic = \true) : bool { if (!$this->propertyTypeChangeGuard->isLegal($property, $classReflection, $inlinePublic, \true)) { return \false; } if ($class->isFinal()) { return \true; } if ($inlinePublic) { return \true; } if ($property->isPrivate()) { return \true; } if (!$param->type instanceof Node) { return \true; } return $property->type instanceof Node; } }