Skip to content

Commit

Permalink
Made mock handler nullable for disabling fake transmission.
Browse files Browse the repository at this point in the history
  • Loading branch information
firebed committed Jul 4, 2024
1 parent 5467571 commit 0a18f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/MyDataRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ abstract class MyDataRequest
private static ?bool $is_provider = false;
private static array $request_options;

private static HandlerStack $handler;
private static ?HandlerStack $handler;

public static function setHandler(MockHandler $handler): void
public static function setHandler(?MockHandler $handler): void
{
self::$handler = HandlerStack::create($handler);
}
Expand Down

0 comments on commit 0a18f34

Please sign in to comment.