Skip to content

Commit 74b18c2

Browse files
committed
[Config][ReflectionClassResource] Use ternary instead of null coaelscing operator
1 parent 19a7885 commit 74b18c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resource/ReflectionClassResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function generateSignature(\ReflectionClass $class)
140140

141141
foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
142142
yield $p->getDocComment().$p;
143-
yield print_r($defaults[$p->name] ?? null, true);
143+
yield print_r(isset($defaults[$p->name]) ? $defaults[$p->name] : null, true);
144144
}
145145
}
146146

0 commit comments

Comments
 (0)