minor #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
-------
4db953f40c
[Config][ReflectionClassResource] Use ternary instead of null coaelscing operator
This commit is contained in:
commit
e5bd6ff59e
@ -140,7 +140,7 @@ class ReflectionClassResource implements SelfCheckingResourceInterface, \Seriali
|
|||||||
|
|
||||||
foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
|
foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
|
||||||
yield $p->getDocComment().$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user