Ticket Details

Viewing some methods causes a "Undefined offset" warning.

BUG Ticket (closed)

###What happened:
... docs/lithium/action/Controller::set()
gives a notice "Undefined offset: 1 in www\li3\app\libraries\plugins\li3_docs\controllers\BrowserController.php on line 179"


###What was expected:
no warning ;-)


This appears to only occur if the return for the method is 'void'.
on 02.17.10 reported by: Archer owned by: gwoo

Updates

on 02.17.10 by Archer
Looking a little deeper I think the problem is a return value without any following description.  It's just that return type 'void' never has a description, so shows up every time. Any other type without a description would also produce this warning.
Replacing line 179 with:
list($type, $text) = explode(' ', $object['info']['tags']['return'] . ' ', 2);
fixes the rendering, but isn't an elegant solution.
(fixed) on 03.08.10 by gwoo
  • owner was changed to gwoo
  • status was changed to closed
  • resolution was changed to fixed
see [dd1046d6f29cfcc5158042a04afeecc78eb1aaf6]