diff --git a/src/HealthCheck/UserSecretStorageHealthCheck.php b/src/HealthCheck/UserSecretStorageHealthCheck.php index 8e4b9d1d..17efa6f0 100644 --- a/src/HealthCheck/UserSecretStorageHealthCheck.php +++ b/src/HealthCheck/UserSecretStorageHealthCheck.php @@ -34,8 +34,6 @@ public function __construct(private readonly TiqrUserRepositoryInterface $tiqrUs public function check(HealthReportInterface $report): HealthReportInterface { - assert($this->tiqrUserRepository instanceof TiqrUserRepository); - $message = ''; if (!$this->tiqrUserRepository->userSecretStorageHealthCheck($message)) { return $report::buildStatusDown($message); diff --git a/src/HealthCheck/UserStorageHealthCheck.php b/src/HealthCheck/UserStorageHealthCheck.php index 2b5a9aa4..89be83bc 100644 --- a/src/HealthCheck/UserStorageHealthCheck.php +++ b/src/HealthCheck/UserStorageHealthCheck.php @@ -34,7 +34,6 @@ public function __construct(private readonly TiqrUserRepositoryInterface $tiqrUs public function check(HealthReportInterface $report): HealthReportInterface { - assert($this->tiqrUserRepository instanceof TiqrUserRepository); $message = ''; if (!$this->tiqrUserRepository->userStorageHealthCheck($message)) { return $report::buildStatusDown($message);