Skip to content

Commit e5bd6ff

Browse files
committed
minor symfony#32561 [Config][ReflectionClassResource] Use ternary instead of null coalescing operator (fancyweb)
This PR was merged into the 3.4 branch. Discussion ---------- [Config][ReflectionClassResource] Use ternary instead of null coalescing operator | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - `??` cannot be on 3.4, tests are failing because of this. Commits ------- 4db953f [Config][ReflectionClassResource] Use ternary instead of null coaelscing operator
2 parents b75a8be + 4db953f commit e5bd6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Resource/ReflectionClassResource.php

+1-1
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)