From 46bfd5c358ca87002cbd7db3d6f27d9da347cb29 Mon Sep 17 00:00:00 2001 From: Jim Seconde Date: Wed, 4 Dec 2024 13:37:43 +0000 Subject: [PATCH] phpstan checks --- src/Client/Exception/Validation.php | 2 +- src/Meetings/Client.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client/Exception/Validation.php b/src/Client/Exception/Validation.php index 27d4bb25..dc0d0648 100644 --- a/src/Client/Exception/Validation.php +++ b/src/Client/Exception/Validation.php @@ -11,7 +11,7 @@ class Validation extends Request public function __construct( string $message = '', int $code = 0, - Throwable $previous = null, + ?Throwable $previous = null, private readonly array $errors = [] ) { parent::__construct($message, $code, $previous); diff --git a/src/Meetings/Client.php b/src/Meetings/Client.php index edbe729f..de4e20dd 100644 --- a/src/Meetings/Client.php +++ b/src/Meetings/Client.php @@ -90,7 +90,7 @@ public function updateRoom(string $id, array $payload): Room return $room; } - public function getAllListedRooms(string $start_id = null, string $end_id = null, int $size = 20): array + public function getAllListedRooms(?string $start_id = null, ?string $end_id = null, int $size = 20): array { $filterParams = []; @@ -233,7 +233,7 @@ public function updateTheme(string $id, array $payload): ?ApplicationTheme return $applicationTheme; } - public function getRoomsByThemeId(string $themeId, string $startId = null, string $endId = null, int $size = 20): array + public function getRoomsByThemeId(string $themeId, ?string $startId = null, ?string $endId = null, int $size = 20): array { $this->api->setIsHAL(true); $this->api->setCollectionName('rooms');