From 14bd16b500cbffcdba17a0ab6c330cfed30eaeb1 Mon Sep 17 00:00:00 2001 From: Dzmitry Chubryk Date: Mon, 24 Feb 2025 16:43:07 +0000 Subject: [PATCH 1/2] Allow psr/http-message v2 (#364) Co-authored-by: Dzmitry Chubryk --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 2a7024440427caf5f0d563d46eb01b1a86b4e0c6 Mon Sep 17 00:00:00 2001 From: Hugo Hamon Date: Tue, 25 Feb 2025 09:22:32 -0500 Subject: [PATCH 2/2] 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 //vendor/intercom/intercom-php/src/IntercomClient.php on line 148 ``` --- src/IntercomClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy