zend-code icon indicating copy to clipboard operation
zend-code copied to clipboard

Check that two MethodGenerator instances hold metadata for methods with the same signature

Open petr-buchin opened this issue 8 years ago • 1 comments

Suppose I have two MethodGenerator instances - $methodA and $methodB. Does this library provide a way to check, whether methods, that might be generated by $methodA and $methodB will have the same signature? By the same signature I mean identical method names, same params with same type hints and same return types. I thought there might be method like MethodGenerator::hasSameSignature(MethodGenerator $method) but I don't see anything like that in the class API.

I think it would be a very helpful feature, since for decorating class methods it's necessary to check that generated method has the same signature as existing one.

petr-buchin avatar May 14 '17 02:05 petr-buchin

This repository has been closed and moved to laminas/laminas-code; a new issue has been opened at https://github.com/laminas/laminas-code/issues/14.

weierophinney avatar Dec 31 '19 21:12 weierophinney