diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-25 16:21:52 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-11 17:01:40 +0200 |
commit | 28af364d2ae2261addc21f8830f175baa8fa72cf (patch) | |
tree | 8d30efe6ef5b82ea2bc0702aa5b8b9fa2080b82c /Zend/zend_ini_scanner.h | |
parent | 4865592525e543f87deb51f5fd22022684b17f83 (diff) | |
download | php-git-28af364d2ae2261addc21f8830f175baa8fa72cf.tar.gz |
Deprecate old ReflectionParameter type declaration APIs
This deprecates:
ReflectionParameter::isArray()
ReflectionParameter::isCallable()
ReflectionParameter::getClass()
These APIs have been superseded by ReflectionParameter::getType()
since PHP 7.0. Types introduced since that time are not available
through the old APIs, and their behavior is getting increasingly
confusing. This is how they interact with PHP 8 union types:
* isArray() will return true if the type is array or ?array,
but not any other union type
* Same for isCallable().
* getClass() will return a class for T|int etc, as long as the
union only contains a single type. T1|T2 will return null.
This behavior is not particularly reasonable or useful, and will
get more confusing as new type system extensions are added.
Closes GH-5209.
Diffstat (limited to 'Zend/zend_ini_scanner.h')
0 files changed, 0 insertions, 0 deletions