staticTypeMapper = $staticTypeMapper; } public function doesConflictWithDefaultValue(PropertyProperty $propertyProperty, Type $propertyType) : bool { if (!$propertyProperty->default instanceof Expr) { return \false; } // the defaults can be in conflict $defaultType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($propertyProperty->default); if ($defaultType instanceof ArrayType && $propertyType instanceof ArrayType) { return \false; } // type is not matching, skip it return !$defaultType->isSuperTypeOf($propertyType)->yes(); } }