Open photodude opened 6 years ago
By the interface it's supposed to return an object. But the class doesn't actually do anything so it throws an Exception. So, it's a bad edge case here.
So I guess we need to ignore the Joomla.Commenting.FunctionComment.InvalidNoReturn
rule for this file...
Steps to reproduce the issue
the Joomla\DateTime\Parser function parse() function docblock return type is
DateTime
https://github.com/joomla-framework/datetime/blob/master/src/Parser/DateTimeParser.php#L20-L34 But the function is just athrow
Expected result
correct return type or no return type
Actual result
return type listed but no return in is the method
Additional comments
I'm not sure what the correct correction is for this case. I assume we remove the return param from the docblock. (but I also assume I don't understand what is going on with this class)