Closed
Closed
bzikarsky
changed the title
Avoid a E_DEPRECATED in _checkTypehint on PHP8
Avoid an E_DEPRECATED in _checkTypehint on PHP8
Merged
jsor approved these changes Feb 2, 2022
clue
changed the title
Avoid an E_DEPRECATED in _checkTypehint on PHP8
Support intersection types (PHP 8.1+ / Promise v2)
PHP8's reflection API changed to make room for handling of union-types. As one of the consequences `ReflectionParameter::getClass` got marked as deprecated. While the bug got already fixed in the meantime, the proposed code clears up the code-path for future features like PHP8.1's intersection-types.
clue approved these changes Feb 4, 2022