- getdate: documentation ( source)
- print_r: documentation ( source)
<?php
namespace A {
/**
* My magic test class
*
* @return \DateTime
*/
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 B {
print_r(getdate()); // shouldn't work as \DateTime. \getdate() fallback
;; // fix CA ;)
}