summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-27 10:58:03 +0200
committerGitHub <noreply@github.com>2022-08-27 10:58:03 +0200
commit3211da93ea9c2f3bf145aae69010c1828857d33b (patch)
tree33c10cab03ca420e0c52920254d9b0b038f19573
parenta6b44acdde9c991e7ebe17e58adee1829c5e113c (diff)
Change type
Co-authored-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--lib/Service/StatusService.php2
-rw-r--r--tests/Unit/Service/StatusServiceTest.php2
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))