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 44414e4 commit 84a4340Copy full SHA for 84a4340
src/Events/LivewireDispatcher.php
@@ -50,6 +50,10 @@ public function handle(RequestHandled $handled): void
50
HTML)
51
);
52
53
+ // Laravel dispatches the ResponseHandled event even for response
54
+ // objects that don't include the `original` property.
55
+ // The typehint in Laravel core is wrong, so we ignore
56
+ /* @phpstan-ignore function.alreadyNarrowedType */
57
if (property_exists($handled->response, 'original')) {
58
$handled->response->original = $originalContent;
59
}
0 commit comments