So, documenting the php code that I am writing, I stopped, where @return string The json output usually said, about the functions that I actually returned json.
So, I was wondering if itβs right to install
* * @return json */ public function test() { $test = array('hola' => array('en' => 'hello', 'ro' => 'salut')); return json_encode($test); }
instead
* * @return string */ public function test() { $test = array('hola' => array('en' => 'hello', 'ro' => 'salut')); return json_encode($test); }
I searched for the corresponding question and overlooked the guidelines, but did not see what I saw, mentioned my doubts.
http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.return.pkg.html
Update
As a link, where I started it all. I saw a couple of times the following:
* * @return View */
So, I think this is the right comeback?
source share