zendframework/zf2 — pull request #3352 by iwalz (2013-01-05 03:43:37+00:00)
Title: ClassMethods hydrator and wrong method definition

I've noticed, that the ClassMethods hydrator will cause a fatal php error, if the function definition for has/get/is - method (no parameter) does not match. I know the conventions, but sometimes you may need a parameter (see https://github.com/zendframework/zf2/blob/master/library/Zend/ServiceManager/ServiceManager.php#L646 ).

This will simply skip the method, if the number of parameters is > 0.

P.S.: Are you interested in a hydrator, that does the same as the ClassMethods recursivly? I need the hydrator, to transform my objects to complete-non-object datatypes (for phing in my case). Is that a valid use-case for you?