We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260ef76 commit 5f65896Copy full SHA for 5f65896
src/Controller/BlogController.php
@@ -52,7 +52,7 @@ final class BlogController extends AbstractController
52
#[Cache(smaxage: 10)]
53
public function index(Request $request, int $page, string $_format, PostRepository $posts, TagRepository $tags): Response
54
{
55
- $tag = new \stdClass();
+ $tag = new Tag('');
56
57
if ($request->query->has('tag')) {
58
$tag = $tags->findOneBy(['name' => $request->query->get('tag')]);
0 commit comments