From 4d65d62575207712da9b67dbc9068f8d58980e38 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Sat, 16 Mar 2024 02:39:58 +0700 Subject: [PATCH] [PHP 8.4] Fixes for implicit nullability deprecation Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations. See: - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types) - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated) --- src/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Manager.php b/src/Manager.php index 84b7434..6b852e0 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -17,7 +17,7 @@ class Manager * @throws Exception * @throws \Exception */ - public function run(Settings $settings = null) + public function run(?Settings $settings = null) { $settings = $settings ?: new Settings; $output = $this->output ?: $this->getDefaultOutput($settings);