@@ -66,7 +66,7 @@ public function all_users_gateway()
6666 {
6767 // Simulate the gateway returning an array of users
6868 $ this ->gateway = new class () extends FakeGatewayClient {
69- public function get (string $ uri , array $ query = [])
69+ public function get (string $ uri , array $ query = []): mixed
7070 {
7171 parent ::get ($ uri , $ query );
7272
@@ -90,7 +90,7 @@ public function get(string $uri, array $query = [])
9090 public function find_users_gateway ()
9191 {
9292 $ this ->gateway = new class () extends FakeGatewayClient {
93- public function get (string $ uri , array $ query = [])
93+ public function get (string $ uri , array $ query = []): mixed
9494 {
9595 parent ::get ($ uri , $ query );
9696 if ($ uri === '/users/5 ' ) {
@@ -113,7 +113,7 @@ public function get(string $uri, array $query = [])
113113 public function find_users_gateway_returns_null_when_not_found ()
114114 {
115115 $ this ->gateway = new class () extends FakeGatewayClient {
116- public function get (string $ uri , array $ query = [])
116+ public function get (string $ uri , array $ query = []): mixed
117117 {
118118 parent ::get ($ uri , $ query );
119119
@@ -131,7 +131,7 @@ public function get(string $uri, array $query = [])
131131 public function create_users_gateway ()
132132 {
133133 $ this ->gateway = new class () extends FakeGatewayClient {
134- public function post (string $ uri , array $ data = [])
134+ public function post (string $ uri , array $ data = []): mixed
135135 {
136136 parent ::post ($ uri , $ data );
137137
@@ -152,7 +152,7 @@ public function post(string $uri, array $data = [])
152152 public function all_users_gateway_handles_empty_response ()
153153 {
154154 $ this ->gateway = new class () extends FakeGatewayClient {
155- public function get (string $ uri , array $ query = [])
155+ public function get (string $ uri , array $ query = []): mixed
156156 {
157157 parent ::get ($ uri , $ query );
158158
@@ -171,7 +171,7 @@ public function get(string $uri, array $query = [])
171171 public function all_users_gateway_handles_api_failure ()
172172 {
173173 $ this ->gateway = new class () extends FakeGatewayClient {
174- public function get (string $ uri , array $ query = [])
174+ public function get (string $ uri , array $ query = []): mixed
175175 {
176176 parent ::get ($ uri , $ query );
177177
@@ -242,7 +242,7 @@ public function delete_users_respects_configured_method()
242242 public function delete_returns_false_on_failed_response ()
243243 {
244244 $ this ->gateway = new class () extends FakeGatewayClient {
245- public function delete (string $ uri )
245+ public function delete (string $ uri ): mixed
246246 {
247247 parent ::delete ($ uri );
248248
@@ -266,7 +266,7 @@ public function successful()
266266 public function static_update_users_gateway ()
267267 {
268268 $ this ->gateway = new class () extends FakeGatewayClient {
269- public function put (string $ uri , array $ data = [])
269+ public function put (string $ uri , array $ data = []): mixed
270270 {
271271 parent ::put ($ uri , $ data );
272272
@@ -286,7 +286,7 @@ public function put(string $uri, array $data = [])
286286 public function static_update_returns_false_on_failed_response ()
287287 {
288288 $ this ->gateway = new class () extends FakeGatewayClient {
289- public function put (string $ uri , array $ data = [])
289+ public function put (string $ uri , array $ data = []): mixed
290290 {
291291 parent ::put ($ uri , $ data );
292292
@@ -327,7 +327,7 @@ public function instance_update_users_gateway()
327327 public function update_returns_false_on_failed_response ()
328328 {
329329 $ this ->gateway = new class () extends FakeGatewayClient {
330- public function put (string $ uri , array $ data = [])
330+ public function put (string $ uri , array $ data = []): mixed
331331 {
332332 parent ::put ($ uri , $ data );
333333
@@ -356,7 +356,7 @@ public function json()
356356 public function update_propagates_api_gateway_exceptions ()
357357 {
358358 $ this ->gateway = new class () extends FakeGatewayClient {
359- public function put (string $ uri , array $ data = [])
359+ public function put (string $ uri , array $ data = []): mixed
360360 {
361361 parent ::put ($ uri , $ data );
362362
@@ -377,7 +377,7 @@ public function put(string $uri, array $data = [])
377377 public function find_or_fail_throws_when_not_found ()
378378 {
379379 $ this ->gateway = new class () extends FakeGatewayClient {
380- public function get (string $ uri , array $ query = [])
380+ public function get (string $ uri , array $ query = []): mixed
381381 {
382382 parent ::get ($ uri , $ query );
383383
@@ -395,7 +395,7 @@ public function get(string $uri, array $query = [])
395395 public function update_or_fail_throws_on_failure ()
396396 {
397397 $ this ->gateway = new class () extends FakeGatewayClient {
398- public function put (string $ uri , array $ data = [])
398+ public function put (string $ uri , array $ data = []): mixed
399399 {
400400 parent ::put ($ uri , $ data );
401401
@@ -421,7 +421,7 @@ public function successful()
421421 public function where_get_filters_results ()
422422 {
423423 $ this ->gateway = new class () extends FakeGatewayClient {
424- public function get (string $ uri , array $ query = [])
424+ public function get (string $ uri , array $ query = []): mixed
425425 {
426426 parent ::get ($ uri , $ query );
427427
@@ -493,7 +493,7 @@ public function from_api_response_maps_nested_relations()
493493 public function paginate_returns_empty_paginator_on_404 ()
494494 {
495495 $ this ->gateway = new class () extends FakeGatewayClient {
496- public function get (string $ uri , array $ query = [])
496+ public function get (string $ uri , array $ query = []): mixed
497497 {
498498 parent ::get ($ uri , $ query );
499499
0 commit comments