Skip to content

Commit 5f65896

Browse files
committed
use tag
1 parent 260ef76 commit 5f65896

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
@@ -52,7 +52,7 @@ final class BlogController extends AbstractController
5252
#[Cache(smaxage: 10)]
5353
public function index(Request $request, int $page, string $_format, PostRepository $posts, TagRepository $tags): Response
5454
{
55-
$tag = new \stdClass();
55+
$tag = new Tag('');
5656

5757
if ($request->query->has('tag')) {
5858
$tag = $tags->findOneBy(['name' => $request->query->get('tag')]);

0 commit comments

Comments
 (0)