You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
petr-buchin
changed the title
Check that two MethodGenerator instances hold metadata for methods with the same signature
Check that two MethodGenerator instances hold metadata for methods with the same signature
May 14, 2017
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.
The text was updated successfully, but these errors were encountered: