On Thu, Dec 8, 2016 at 10:34 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> What's the best practice of internal function and method data type
> validation, both parameter and return types?
>
> Although it seems it is possible to retrieve parameter/return types,
> there is no APIs defined in Zend according to ext/reflection or I must
> have missed something.
>
> Thank you.
It seems there isn't clean and easy way to introspect and validate
parameters and return type currently.
I'll forget about validating to be registered callback
functions/methods parameter and return type for the time being.
If you have suggestions, I appreciate it.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net