Which of the following is the correct way to document the return type of this method for phpDocumentor?
Method 1:
public function foo() { return array(1, 2, 3); }
Method 2:
public function foo() { return array(1, 2, 3); }
Also, are there any IDE values โโfrom any method?
Edit:
Both PhpStorm and Netbeans 7.1+ IDEs seem to support the second method.
source share