Strict type declarations not enforced for Reflection API invocation

From: Date: Tue, 10 Oct 2017 13:41:03 +0000
Subject: Strict type declarations not enforced for Reflection API invocation
Groups: php.internals 
Request: Send a blank email to internals+get-100851@lists.php.net to get a copy of this message
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.

« previous php.internals (#100851) next »