[PropertyInfo] fix direct deprecation

This commit is contained in:
Nicolas Grekas 2021-02-18 17:47:29 +01:00
parent 22c2f1af65
commit 7966517976
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,8 @@ CHANGELOG
5.3
---
* Added support for multiple types for collection keys & values
* Deprecated the `Type::getCollectionKeyType()` and `Type::getCollectionValueType()` methods, use `Type::getCollectionKeyTypes()` and `Type::getCollectionValueTypes()` instead.
* Add support for multiple types for collection keys & values
* Deprecate the `Type::getCollectionKeyType()` and `Type::getCollectionValueType()` methods, use `Type::getCollectionKeyTypes()` and `Type::getCollectionValueTypes()` instead
5.2.0
-----

View File

@ -165,7 +165,7 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
continue 2;
}
$types[] = new Type(Type::BUILTIN_TYPE_OBJECT, $type->isNullable(), $resolvedClass, $type->isCollection(), $type->getCollectionKeyType(), $type->getCollectionValueType());
$types[] = new Type(Type::BUILTIN_TYPE_OBJECT, $type->isNullable(), $resolvedClass, $type->isCollection(), $type->getCollectionKeyTypes(), $type->getCollectionValueTypes());
}
}
}