https://bugs.php.net/bug.php?id=75345 is about the fact that strict type declarations are not enforced when a function or method is invoked via the Reflection API.
There is a pull request that addresses this (as well as https://bugs.php.net/bug.php?id=74750) at https://github.com/php/php-src/pull/2837. I consider this a serious bug that leads to unexpected, confusing problems such as https://github.com/sebastianbergmann/phpunit/issues/2796#issuecomment-335180273. I understand Nikita's point of view (see https://github.com/php/php-src/pull/2837#issuecomment-335405067) that changing this behavior (aka. fixing this bug) can be considered a "non-trivial backwards compatibility break". Therefore I would like to bring this issue to the attention of this list with this mail. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php