Welcome! Log In Create A New Profile


[PHP-DEV] [Discussion] Deprecate several ReflectionParameter methods

Posted by Alexander Lisachenko 
Alexander Lisachenko
[PHP-DEV] [Discussion] Deprecate several ReflectionParameter methods
December 26, 2017 05:00PM
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

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
Sorry, only registered users may post in this forum.

Click here to login