On Mon, Sep 5, 2016 at 11:38 AM, Nicolas Grekas <nicolas.gre...@gmail.com> wrote: > Hello, > > It looks like we miss a way to check by reflection if a function/method has > strict types enabled or not. > > We'd need to do this in Symfony to generate a file with concatenated > classes, but split "declare_strict=1" classes out so that they don't break > (because there is no way to create a single file that contains both strict > and non-strict classes unfortunately also). > > Would it be possible to expose some flavor of ZEND_ACC_STRICT_TYPES to > userland?
I guess what you miss for what you want to do, is to detect if strict types are activated into the current scope, at runtime. Here is a feature that solves that. https://github.com/jpauli/php-src/tree/is_strict_types Julien.P -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php