From 0ffc4b0c846bf272f2552ee2698559da62ffe140 Mon Sep 17 00:00:00 2001 From: Timothy Elias Date: Tue, 16 Sep 2025 15:51:14 +0200 Subject: [PATCH] Fix PHP84 deprecation PHP message: PHP Deprecated: MailerLite\LaravelElasticsearch\Manager::connection(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead Changelog entries: https://www.php.net/manual/en/migration84.deprecated.php --- src/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Manager.php b/src/Manager.php index 03f9e29..ee3aded 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -51,7 +51,7 @@ public function __construct(Container $app, Factory $factory) * * @return \Elasticsearch\Client */ - public function connection(string $name = null): Client + public function connection(?string $name = null): Client { $name = $name ?: $this->getDefaultConnection();