Skip to content

Commit

Permalink
PHP 8.4 compatibility (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost authored Jul 23, 2024
1 parent 1056ceb commit cec2467
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 cec2467

Please sign in to comment.