Skip to content

Commit 84a4340

Browse files
committed
add phpstan-ignore
1 parent 44414e4 commit 84a4340

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Events/LivewireDispatcher.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public function handle(RequestHandled $handled): void
5050
HTML)
5151
);
5252

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 */
5357
if (property_exists($handled->response, 'original')) {
5458
$handled->response->original = $originalContent;
5559
}

0 commit comments

Comments
 (0)