Completely unclear how to determine whether a method has a prototype or not.
Example:
<?php
class MyClass
{
public function foo()
{
}
}
$refl = new ReflectionClass('MyClass');
var_dump($refl->getMethod('foo')->getPrototype());
Output for PHP 5.1.2 - 5.5.5:
Fatal error: Uncaught exception 'ReflectionException' with message 'Method MyClass::foo does not have a prototype'...
I would like to implement something like bool ReflectionMethod::hasPrototype( void )
for my ReflectionMethod wrapper.
Any ideas?