diff --git a/classes/Models/PrestashopRelease.php b/classes/Models/PrestashopRelease.php index f9cae1196..7e3127f39 100644 --- a/classes/Models/PrestashopRelease.php +++ b/classes/Models/PrestashopRelease.php @@ -47,7 +47,7 @@ class PrestashopRelease public function __construct( string $version, string $stability, - string $distribution = null, + ?string $distribution = null, ?string $phpMaxVersion = null, ?string $phpMinVersion = null, ?string $zipDownloadUrl = null, diff --git a/classes/Models/UpdateNotificationConfiguration.php b/classes/Models/UpdateNotificationConfiguration.php index f66d2cbe7..6a770f876 100644 --- a/classes/Models/UpdateNotificationConfiguration.php +++ b/classes/Models/UpdateNotificationConfiguration.php @@ -47,7 +47,7 @@ class UpdateNotificationConfiguration /** * @param array{lastCheck: array{timestamp: int|null, version: string|null, releaseNote: string|null}, employees: array}|null $configuration */ - public function __construct(array $configuration = null) + public function __construct(?array $configuration = null) { if ($configuration) { $lastCheck = $configuration['lastCheck'];