Skip to content

Commit 5c267f0

Browse files
committed
chore: clear decoded cache in decodeUsing function
1 parent cba387c commit 5c267f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http-client/src/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function object(): array|object|null
106106
public function decodeUsing(?Closure $callback): static
107107
{
108108
$this->decodeUsing = $callback;
109+
$this->decoded = [];
109110

110111
return $this;
111112
}

0 commit comments

Comments
 (0)