From 3211da93ea9c2f3bf145aae69010c1828857d33b Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 27 Aug 2022 10:58:03 +0200 Subject: Change type Co-authored-by: Benjamin Brahmer Signed-off-by: Carl Schwan --- lib/Service/StatusService.php | 2 +- tests/Unit/Service/StatusServiceTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/StatusService.php b/lib/Service/StatusService.php index 803a3a7e4..a15f30c76 100644 --- a/lib/Service/StatusService.php +++ b/lib/Service/StatusService.php @@ -48,7 +48,7 @@ class StatusService $cronOff = !boolval($this->settings->getAppValue( Application::NAME, 'useCronUpdates', - (string)Application::DEFAULT_SETTINGS['useCronUpdates'] + Application::DEFAULT_SETTINGS['useCronUpdates'] )); // check for cron modes which may lead to problems diff --git a/tests/Unit/Service/StatusServiceTest.php b/tests/Unit/Service/StatusServiceTest.php index bb47ef537..dfe3dfd55 100644 --- a/tests/Unit/Service/StatusServiceTest.php +++ b/tests/Unit/Service/StatusServiceTest.php @@ -60,7 +60,7 @@ class StatusServiceTest extends TestCase ->will($this->returnValueMap([ ['news', 'installed_version', '', '1.0'], ['core', 'backgroundjobs_mode', '', 'cron'], - ['news', 'useCronUpdates', (string)true, (string)true], + ['news', 'useCronUpdates', true, true], ])); $this->connection->expects($this->exactly(1)) -- cgit v1.2.3