Skip to content

Commit bcb47bb

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Simplify some code with null coalesce operator
2 parents a533160 + 918a576 commit bcb47bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Compiler/MergeExtensionConfigurationPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function freezeAfterProcessing(Extension $extension, ContainerBuilder $co
143143
*/
144144
public function getEnvPlaceholders(): array
145145
{
146-
return null !== $this->processedEnvPlaceholders ? $this->processedEnvPlaceholders : parent::getEnvPlaceholders();
146+
return $this->processedEnvPlaceholders ?? parent::getEnvPlaceholders();
147147
}
148148

149149
public function getUnusedEnvPlaceholders(): array

ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ private function callMethod(object $service, array $call, array &$inlineServices
15601560
*/
15611561
private function shareService(Definition $definition, $service, ?string $id, array &$inlineServices)
15621562
{
1563-
$inlineServices[null !== $id ? $id : spl_object_hash($definition)] = $service;
1563+
$inlineServices[$id ?? spl_object_hash($definition)] = $service;
15641564

15651565
if (null !== $id && $definition->isShared()) {
15661566
$this->services[$id] = $service;

0 commit comments

Comments
 (0)