public boolean equalsByHintTypingSignature(MethodEntity method){
        if (parameters == null || method.parameters == null)
            return true;

        int i = 0;
        for(ParameterEntity param : parameters){
            if (i >= method.parameters.length)
                break;

            ParameterEntity other = method.parameters[i];
            if (param.getTypeClass() != null){
                if (other.getTypeClass() == null || !other.getTypeClassLower().equals(param.getTypeClassLower()))
                    return false;
            } else if (param.getType() != HintType.ANY){
                if (other.getType() != param.getType())
                    return false;
            }
            i++;
        }
        return true;
    }
Use  isImplementableSignatureFor() method.
@param method
@param strong
@return
jphp-runtime/src/php/runtime/reflection/MethodEntity.java