2016-09-05 11:38 GMT+02:00 Nicolas Grekas <nicolas.gre...@gmail.com>:

> Hello,
>
> It looks like we miss a way to check by reflection if a function/method has
> strict types enabled or not.
>

This isn't bound to functions / methods and can't be reflected.


> 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).
>

declare_strict=1 affects only calls, not definitions. It matters in the
file that does the call, not the file where it is defined.


> Would it be possible to expose some flavor of ZEND_ACC_STRICT_TYPES to
> userland?
>
> Regards,
> Nicolas
>

Reply via email to