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 94d2520 commit b5eed22Copy full SHA for b5eed22
src/Configurator.php
@@ -422,9 +422,10 @@ private function getActualProperties(\ReflectionClass $class): \Generator
422
{
423
foreach ($class->getProperties() as $property) {
424
// Obsolete property must not be included in the scheme.
425
- $metadata = \iterator_to_array(
426
- $this->getPropertyMetadata($property, Obsolete::class),
427
- );
+ $metadata = $this->getPropertyMetadata($property, Obsolete::class);
+ if (!\is_array($metadata)) {
+ $metadata = \iterator_to_array($metadata);
428
+ }
429
if ($metadata !== []) {
430
continue;
431
}
0 commit comments