[Discussion] Deprecate several ReflectionParameter methods
| From: | Alexander Lisachenko | Date: | Tue, 26 Dec 2017 15:57:04 +0000 |
| Subject: | [Discussion] Deprecate several ReflectionParameter methods | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-101420@lists.php.net to get a copy of this message | ||
Hi, internals!
I would like to nominate following methods for deprecation in next patch
version of PHP:
- ReflectionParameter->isArray(),
- ReflectionParameter->isCallable(),
- ReflectionParameter->allowsNull(),
- ReflectionParameter->getClass()
All these methods are covered with ReflectionNamedType API, available for
PHP>=7 via ReflectionParameter->hasType() and
ReflectionParameter->getType().
So, next major version will use ReflectionNamedType API for getting
information about type instead of querying small subset of type information
directly from ReflectionParameter API.
What is your opinion about this? Thanks!
Best regards,
Alexander Lisachenko