File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/Illuminate/Http/Client Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ class PendingRequest
164164
165165 /**
166166 * The callbacks that should execute after the Laravel Response is built.
167- *
167+ *
168168 * @var \Illuminate\Support\Collection<int, (callable(\Illuminate\Http\Client\Response))>
169169 */
170170 protected $ afterResponseCallbacks ;
@@ -746,7 +746,8 @@ public function beforeSending($callback)
746746
747747 /**
748748 * Add a new callback to execute after the response is built.
749- * @param callable(\Illuminate\Http\Client\Response) $callback
749+ *
750+ * @param (callable(\Illuminate\Http\Client\Response): void) $callback
750751 * @return $this
751752 */
752753 public function afterResponse (callable $ callback )
@@ -1599,6 +1600,12 @@ protected function newResponse($response)
15991600 });
16001601 }
16011602
1603+ /**
1604+ * Execute the "after response" callbacks.
1605+ *
1606+ * @param Response $response
1607+ * @return void
1608+ */
16021609 protected function runAfterResponseCallbacks (Response $ response )
16031610 {
16041611 $ this ->afterResponseCallbacks ->each (static fn (callable $ callback ) => $ callback ($ response ));
You can’t perform that action at this time.
0 commit comments