You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
class X {
publicfunctionmethod() {
var_dump(static::class);
}
}
$method = new \Zend\Code\Reflection\MethodReflection(X::class, 'method');
(newX)->method();
var_dump($method->getBody());
Output:
string(1) "X"
string(18) "
var_dump("
self works fine, but it is not suitable in some cases.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
When
static
keyword is present in method body,extractMethodContents
ignores it and everything after.Reproducible with [email protected]
Reproduction:
Output:
self
works fine, but it is not suitable in some cases.The text was updated successfully, but these errors were encountered: