Skip to content

Commit

Permalink
PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost committed Jul 23, 2024
1 parent 1056ceb commit eec7862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SiteAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/SiteAliasWithConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit eec7862

Please sign in to comment.