From eec7862be10038de0bc1e3dfc101c96cb946e553 Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Tue, 23 Jul 2024 02:36:54 +0200 Subject: [PATCH] PHP 8.4 compatibility ref https://github.com/drush-ops/drush/issues/6069 --- src/SiteAlias.php | 2 +- src/SiteAliasWithConfig.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SiteAlias.php b/src/SiteAlias.php index 1c9dced..cc6531a 100644 --- a/src/SiteAlias.php +++ b/src/SiteAlias.php @@ -23,7 +23,7 @@ class SiteAlias extends Config implements SiteAliasInterface /** * @inheritdoc */ - public function __construct(array $data = null, $name = '', $env = '') + public function __construct(?array $data = null, $name = '', $env = '') { parent::__construct($data); if (!empty($env)) { diff --git a/src/SiteAliasWithConfig.php b/src/SiteAliasWithConfig.php index 8f38efe..83c867f 100644 --- a/src/SiteAliasWithConfig.php +++ b/src/SiteAliasWithConfig.php @@ -36,7 +36,7 @@ public function __construct(SiteAliasInterface $siteAlias, ConfigInterface $defa * @return SiteAlias read-only site alias combined with the runtime * config (overrides the site alias values) and the default config. */ - public static function create(SiteAliasInterface $siteAlias, ConfigInterface $defaultConfig, ConfigInterface $runtimeConfig = null) + public static function create(SiteAliasInterface $siteAlias, ConfigInterface $defaultConfig, ?ConfigInterface $runtimeConfig = null) { $runtimeConfig = static::determineCorrectRuntimeConfig($defaultConfig, $runtimeConfig);