diff --git a/lib/Controller/EpisodeActionController.php b/lib/Controller/EpisodeActionController.php index cdefe1f..761979c 100644 --- a/lib/Controller/EpisodeActionController.php +++ b/lib/Controller/EpisodeActionController.php @@ -26,7 +26,7 @@ class EpisodeActionController extends Controller { ) { parent::__construct($AppName, $request); $this->episodeActionRepository = $episodeActionRepository; - $this->userId = $UserId !== null ? $UserId : ''; + $this->userId = $UserId ?? ''; $this->episodeActionSaver = $episodeActionSaver; $this->request = $request; } diff --git a/lib/Controller/SubscriptionChangeController.php b/lib/Controller/SubscriptionChangeController.php index 9059aa0..6911973 100644 --- a/lib/Controller/SubscriptionChangeController.php +++ b/lib/Controller/SubscriptionChangeController.php @@ -28,7 +28,7 @@ class SubscriptionChangeController extends Controller { parent::__construct($AppName, $request); $this->subscriptionChangeSaver = $subscriptionChangeSaver; $this->subscriptionChangeRepository = $subscriptionChangeRepository; - $this->userId = $UserId !== null ? $UserId : ''; + $this->userId = $UserId ?? ''; } /**