Currently T_RETURN tokens are being parsed into a PGPFunctionCall, which makes sense, but their type is being set as "601" instead of "T_RETURN". This breaks commands like PGPList->find(T_RETURN), since find looks for $object->type, not $object->name['type']. Maybe it's a bug with PGPList->find()?
Here's the parsed output of return call:
PGPFunctionCall
(
[parent] => PGPNode
(
[type-1] => 601
)
[type] => 601
[name] => Array
(
[type] => 335 (T_RETURN)
[value] => return
)
This has broken coder_upgrade routines such as coder_upgrade_convert_action_info().
Comments
Comment #1
solotandem commentedFixed in next dev release.