Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Http requests to be recorded without requests being faked #54850

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Client/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public function allowStrayRequests()
*
* @return $this
*/
protected function record()
public function record()
{
$this->recording = true;

Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Support/Facades/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* @method static \Illuminate\Http\Client\ResponseSequence sequence(array $responses = [])
* @method static bool preventingStrayRequests()
* @method static \Illuminate\Http\Client\Factory allowStrayRequests()
* @method static \Illuminate\Http\Client\Factory record()
* @method static void recordRequestResponsePair(\Illuminate\Http\Client\Request $request, \Illuminate\Http\Client\Response|null $response)
* @method static void assertSent(callable $callback)
* @method static void assertSentInOrder(array $callbacks)
Expand Down
Loading