bzikarsky · GitHub

@bzikarsky mentioned this pull request

Sep 28, 2021

Closed

kelunik

Closed

@bzikarsky

@bzikarsky bzikarsky changed the title Avoid a E_DEPRECATED in _checkTypehint on PHP8 Avoid an E_DEPRECATED in _checkTypehint on PHP8

Sep 29, 2021

Merged

@bzikarsky

willpercey-gb

@bzikarsky

SimonFrings

@bzikarsky

WyriHaximus

@WyriHaximus

cdosoftei

jsor

jsor approved these changes Feb 2, 2022

@clue clue changed the title Avoid an E_DEPRECATED in _checkTypehint on PHP8 Support intersection types (PHP 8.1+ / Promise v2)

Feb 4, 2022

clue

@bzikarsky

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.

@bzikarsky

SimonFrings

clue

clue approved these changes Feb 4, 2022

@clue

Merged

@clue clue mentioned this pull request

Aug 14, 2022

Closed

Read the original on github.com ↗