Skip to content

Commit 491b896

Browse files
committed
use nullsafe operator
1 parent 9b4e412 commit 491b896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function index(Request $request, int $page, string $_format, PostReposito
5959
// See https://symfony.com/doc/current/templates.html#template-naming
6060
return $this->render('blog/index.'.$_format.'.twig', [
6161
'paginator' => $latestPosts,
62-
'tagName' => $tag ? $tag->getName() : null,
62+
'tagName' => $tag?->getName(),
6363
]);
6464
}
6565

0 commit comments

Comments
 (0)