minor #40245 [PropertyInfo] fix direct deprecation (nicolas-grekas)

This PR was merged into the 5.3-dev branch.

Discussion
----------

[PropertyInfo] fix direct deprecation

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

7966517976 [PropertyInfo] fix direct deprecation
This commit is contained in:
Nicolas Grekas 2021-02-18 17:50:25 +01:00
commit be3f6b974b
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());
}
}
}