Skip to content

Commit b8623ef

Browse files
Merge branch '5.0' into 5.1
* 5.0: (28 commits) [Cache] $lifetime cannot be null [Serializer] minor cleanup fix merge Run PHP 8 as 7.4.99 Remove calls to deprecated ReflectionParameter::getClass(). [VarDumper] fix PHP 8 support Add php 8 to travis. [Cache] Accessing undefined constants raises an Error in php8 [Cache] allow DBAL v3 Skip Doctrine DBAL on php 8 until we have a compatible version. [DomCrawler] Catch expected ValueError. Made method signatures compatible with their corresponding traits. [ErrorHandler] Apply php8 fixes from Debug component. [DomCrawler] Catch expected ValueError. [Validator] Catch expected ValueError. [VarDumper] ReflectionFunction::isDisabled() is deprecated. [BrowserKit] Raw body with custom Content-Type header [PropertyAccess] Parse php 8 TypeErrors correctly. [Intl] Fix call to ReflectionProperty::getValue() for static properties. [HttpKernel] Prevent calling method_exists() with non-string values. ...
2 parents 20e328c + 6c2a080 commit b8623ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Resource/ReflectionClassResource.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ private function generateSignature(\ReflectionClass $class): iterable
137137
$defaults = $class->getDefaultProperties();
138138

139139
foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
140-
yield $p->getDocComment().$p;
140+
yield $p->getDocComment();
141+
yield $p->isDefault() ? '<default>' : '';
142+
yield $p->isPublic() ? 'public' : 'protected';
143+
yield $p->isStatic() ? 'static' : '';
144+
yield '$'.$p->name;
141145
yield print_r(isset($defaults[$p->name]) && !\is_object($defaults[$p->name]) ? $defaults[$p->name] : null, true);
142146
}
143147
}

0 commit comments

Comments
 (0)