Fixed phpdoc of method. Accept both types