Skip to content

Commit 54d0371

Browse files
committed
CS: Apply ternary_to_null_coalescing fixer
1 parent 18e7352 commit 54d0371

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
@@ -42,7 +42,7 @@ public function __construct(FragmentHandler $handler)
4242
*/
4343
public function renderFragment($uri, $options = [])
4444
{
45-
$strategy = isset($options['strategy']) ? $options['strategy'] : 'inline';
45+
$strategy = $options['strategy'] ?? 'inline';
4646
unset($options['strategy']);
4747

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

Node/SearchAndRenderBlockNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function compile(Compiler $compiler)
4545
// The "label" function expects the label in the second and
4646
// the variables in the third argument
4747
$label = $arguments[1];
48-
$variables = isset($arguments[2]) ? $arguments[2] : null;
48+
$variables = $arguments[2] ?? null;
4949
$lineno = $label->getTemplateLine();
5050

5151
if ($label instanceof ConstantExpression) {

0 commit comments

Comments
 (0)