File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class Client
123
123
* @param string|null $apiVersion
124
124
* @param string|null $enterpriseUrl
125
125
*/
126
- public function __construct (Builder $ httpClientBuilder = null , $ apiVersion = null , $ enterpriseUrl = null )
126
+ public function __construct (? Builder $ httpClientBuilder = null , $ apiVersion = null , $ enterpriseUrl = null )
127
127
{
128
128
$ this ->responseHistory = new History ();
129
129
$ this ->httpClientBuilder = $ builder = $ httpClientBuilder ?? new Builder ();
Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ class Builder
78
78
* @param StreamFactoryInterface|null $streamFactory
79
79
*/
80
80
public function __construct (
81
- ClientInterface $ httpClient = null ,
82
- RequestFactoryInterface $ requestFactory = null ,
83
- StreamFactoryInterface $ streamFactory = null
81
+ ? ClientInterface $ httpClient = null ,
82
+ ? RequestFactoryInterface $ requestFactory = null ,
83
+ ? StreamFactoryInterface $ streamFactory = null
84
84
) {
85
85
$ this ->httpClient = $ httpClient ?? Psr18ClientDiscovery::find ();
86
86
$ this ->requestFactory = $ requestFactory ?? Psr17FactoryDiscovery::findRequestFactory ();
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class ResultPager implements ResultPagerInterface
59
59
*
60
60
* @return void
61
61
*/
62
- public function __construct (Client $ client , int $ perPage = null )
62
+ public function __construct (? Client $ client , ? int $ perPage = null )
63
63
{
64
64
if (null !== $ perPage && ($ perPage < 1 || $ perPage > 100 )) {
65
65
throw new ValueError (sprintf ('%s::__construct(): Argument #2 ($perPage) must be between 1 and 100, or null ' , self ::class));
You can’t perform that action at this time.
0 commit comments