diff --git a/composer.json b/composer.json index 77c4fe2..8fe5ee9 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "php-http/discovery": "^1.4", "php-http/httplug": "^1.0 || ^2.0", "php-http/message": "^1.7", - "psr/http-message": "^1.0" + "psr/http-message": "^1.0 || ^2.0" }, "require-dev": { "nyholm/psr7": "^1.6.1", diff --git a/src/IntercomClient.php b/src/IntercomClient.php index eb85424..6fb053b 100644 --- a/src/IntercomClient.php +++ b/src/IntercomClient.php @@ -145,7 +145,7 @@ class IntercomClient * @param string|null $password Api Key. * @param array $extraRequestHeaders Extra request headers to be sent in every api request */ - public function __construct(string $appIdOrToken, string $password = null, array $extraRequestHeaders = []) + public function __construct(string $appIdOrToken, ?string $password = null, array $extraRequestHeaders = []) { $this->users = new IntercomUsers($this); $this->contacts = new IntercomContacts($this);
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: