Skip to content

Commit

Permalink
[Config] Removed implicit cast of ReflectionProperty to string.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed May 22, 2020
1 parent 52abcbe commit 8adbade
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -139,7 +139,11 @@ private function generateSignature(\ReflectionClass $class)
$defaults = $class->getDefaultProperties();

foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
yield $p->getDocComment().$p;
yield $p->getDocComment();
yield $p->isDefault() ? '<default>' : '';
yield $p->isPublic() ? 'public' : 'protected';
yield $p->isStatic() ? 'static' : '';
yield '$'.$p->name;
yield print_r(isset($defaults[$p->name]) && !\is_object($defaults[$p->name]) ? $defaults[$p->name] : null, true);
}
}
Expand Down

0 comments on commit 8adbade

Please sign in to comment.