Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ReflectionType::__toString() has been deprecated in favor of ReflectionNamedType::getName(). The documentation states that this: > As of PHP 7.1.0, ReflectionType::__toString() is deprecated, and > ReflectionParamater::getType() *may* return an instance of > ReflectionNamedType. To get the name of the parameter type, > ReflectionNamedType() is available in this case. Since this implies there is no guarantee to have a ReflectionNamedType, I added a type check, falling back to the use of the deprecated API.
- Loading branch information