Skip to content

Commit dde3311

Browse files
committed
Expand orchestra/testbench dependency to allow ^10.0 & update constructor type hint in Response.php
1 parent ea43bf5 commit dde3311

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"omniphx/forrest": "^2.0"
1414
},
1515
"require-dev": {
16-
"orchestra/testbench": "^8.0 || ^9.0",
16+
"orchestra/testbench": "^8.0 || ^9.0 || ^10.0",
1717
"php-parallel-lint/php-parallel-lint": "^1.3",
1818
"phpstan/phpstan": "^1",
1919
"phpunit/phpunit": "^10.0",

src/Models/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Response
2323
/**
2424
* @param string|array<string, mixed> $rawResponse
2525
*/
26-
public function __construct(protected string $query, string|array $rawResponse, int $currentPage = null)
26+
public function __construct(protected string $query, string|array $rawResponse, ?int $currentPage = null)
2727
{
2828
if (is_string($rawResponse)) {
2929
throw new InvalidResponseException('String response received - expected an array');

0 commit comments

Comments
 (0)