<?php
namespace A {
/**
* My magic test class
*
* @return \Exception
*/
function getdate() {
return 'what_ever';
}
//\getdate(); // ctrl + click on getdate, should go to date.php stubs. Hover is also invalid. This looks like a problem with selection engine
}
namespace C {
use function getdate as getdate_alias;
echo getdate_alias();// not work
//;; // fix CA ;)
}
Notice: Array to string conversion in /in/Ivf7l on line 17
Array
Output for 7.3.32 - 7.3.33
Array
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35
Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /in/Ivf7l on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING or T_NS_SEPARATOR in /in/Ivf7l on line 16
Process exited with code 255.