We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89c62e commit 69f51b7Copy full SHA for 69f51b7
src/main/php/lang/reflect/Parameter.class.php
@@ -171,8 +171,8 @@ public function getDefaultValue() {
171
172
$value= $this->_reflect->getDefaultValue();
173
if (null === $value) {
174
- $details= XPClass::detailsForMethod($this->_reflect->getDeclaringClass(), $this->_details[1]);
175
- return $details[DETAIL_TARGET_ANNO]['$'.$this->_reflect->getName()]['default'] ?? null;
+ $class= strtr($this->_reflect->getDeclaringClass()->getName(), '\\', '.');
+ return \xp::$meta[$class][1][$this->_details[1]][DETAIL_TARGET_ANNO]['$'.$this->_reflect->getName()]['default'] ?? null;
176
}
177
return $value;
178
0 commit comments