Skip to content

Commit 2a70244

Browse files
authored
Make IntercomClient::$password explicitly nullable (#373)
This prevents a deprecation warning from showing up since PHP 8.4 ``` Deprecated: Intercom\IntercomClient::__construct(): Implicitly marking parameter $password as nullable is deprecated, the explicit nullable type must be used instead in /<redacted-path>/vendor/intercom/intercom-php/src/IntercomClient.php on line 148 ```
1 parent 14bd16b commit 2a70244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/IntercomClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class IntercomClient
145145
* @param string|null $password Api Key.
146146
* @param array $extraRequestHeaders Extra request headers to be sent in every api request
147147
*/
148-
public function __construct(string $appIdOrToken, string $password = null, array $extraRequestHeaders = [])
148+
public function __construct(string $appIdOrToken, ?string $password = null, array $extraRequestHeaders = [])
149149
{
150150
$this->users = new IntercomUsers($this);
151151
$this->contacts = new IntercomContacts($this);

0 commit comments

Comments
 (0)