From 4715cb2b8eca4f15bf77375cbb341ff3d962465c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Mon, 16 May 2022 11:37:50 +0200 Subject: [PATCH] chore: Minor code changes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- lib/SP/Config/ConfigDataInterface.php | 8 ++++---- tests/SP/DatabaseUtil.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/SP/Config/ConfigDataInterface.php b/lib/SP/Config/ConfigDataInterface.php index 5286d3ec..359e93fb 100644 --- a/lib/SP/Config/ConfigDataInterface.php +++ b/lib/SP/Config/ConfigDataInterface.php @@ -350,9 +350,9 @@ interface ConfigDataInterface public function setCheckUpdates(?bool $checkUpdates): ConfigDataInterface; /** - * @return string + * @return string|null */ - public function getConfigHash(); + public function getConfigHash(): ?string; /** * Generates a hash from current config options @@ -891,9 +891,9 @@ interface ConfigDataInterface public function jsonSerialize(); /** - * @return string + * @return string|null */ - public function getConfigSaver(); + public function getConfigSaver(): ?string; /** * @param string|null $configSaver diff --git a/tests/SP/DatabaseUtil.php b/tests/SP/DatabaseUtil.php index 527fbf48..b92003fc 100644 --- a/tests/SP/DatabaseUtil.php +++ b/tests/SP/DatabaseUtil.php @@ -86,7 +86,7 @@ class DatabaseUtil { try { self::getConnection() - ->exec(sprintf('DROP USER \'%s\'@\'%s\'', $user, $host)); + ->exec(sprintf('DROP USER IF EXISTS \'%s\'@\'%s\'', $user, $host)); } catch (Exception $e) { processException($e); }