Skip to content

Commit 7e3447d

Browse files
authored
Fixing bad method call in tip
1 parent 36c54da commit 7e3447d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sfcasts/turbo/stream-everything.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ In `symfony/ux-turbo` 2.1 and higher, this code has changed:
9696

9797
```php
9898
if (TurboBundle::STREAM_FORMAT === $request->getPreferredFormat()) {
99-
$request->setFormat(TurboBundle::STREAM_FORMAT);
99+
$request->setRequestFormat(TurboBundle::STREAM_FORMAT);
100100

101101
return $this->render('product/reviews.stream.html.twig', [
102102
'product' => $product,

0 commit comments

Comments
 (0)