type = 'number'; $property->format = 'float'; $this->setNullableProperty($types[0], $property); } public function supports(array $types): bool { return 1 === count($types) && Type::BUILTIN_TYPE_FLOAT === $types[0]->getBuiltinType(); } }