Skip to content

Commit dd8bbd7

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: CS: Apply ternary_to_null_coalescing fixer
2 parents 205c8bf + 54d0371 commit dd8bbd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Extension/HttpKernelRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(FragmentHandler $handler)
3737
*/
3838
public function renderFragment($uri, array $options = []): string
3939
{
40-
$strategy = isset($options['strategy']) ? $options['strategy'] : 'inline';
40+
$strategy = $options['strategy'] ?? 'inline';
4141
unset($options['strategy']);
4242

4343
return $this->handler->render($uri, $strategy, $options);

Node/SearchAndRenderBlockNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function compile(Compiler $compiler): void
4040
// The "label" function expects the label in the second and
4141
// the variables in the third argument
4242
$label = $arguments[1];
43-
$variables = isset($arguments[2]) ? $arguments[2] : null;
43+
$variables = $arguments[2] ?? null;
4444
$lineno = $label->getTemplateLine();
4545

4646
if ($label instanceof ConstantExpression) {

0 commit comments

Comments
 (0)