[Config][ReflectionClassResource] Use ternary instead of null coaelscing operator

This commit is contained in:
Thomas Calvet 2019-07-16 14:34:18 +02:00
parent b75a8be5e2
commit 4db953f40c
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class ReflectionClassResource implements SelfCheckingResourceInterface, \Seriali
foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
yield $p->getDocComment().$p;
yield print_r($defaults[$p->name] ?? null, true);
yield print_r(isset($defaults[$p->name]) ? $defaults[$p->name] : null, true);
}
}