Well basically when you have a return type on a method you must make sure the method returns something unless it throws an exception so even if you have a try catch in there you have to make sure you...
Type: Posts; User: Json
Well basically when you have a return type on a method you must make sure the method returns something unless it throws an exception so even if you have a try catch in there you have to make sure you...
In the case where the first return statement won't be reached like for instance in an if you still need to have a return.
Hope that makes sense.
// Json