summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 14:00:51 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-14 21:55:40 +0100
commit7ffd62bf955cac39123015a362ccd68ea16bb185 (patch)
treebfa27a75b4fe86983ea2d0ff76c8dd9b5404e745 /lib/private/AppFramework
parent1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff)
downloadnextcloud-server-7ffd62bf955cac39123015a362ccd68ea16bb185.tar.gz
nextcloud-server-7ffd62bf955cac39123015a362ccd68ea16bb185.zip
Make the ITimeFactory strict + return types
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Utility/TimeFactory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Utility/TimeFactory.php b/lib/private/AppFramework/Utility/TimeFactory.php
index 30d38d9bde4..fc3bf72609f 100644
--- a/lib/private/AppFramework/Utility/TimeFactory.php
+++ b/lib/private/AppFramework/Utility/TimeFactory.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -22,7 +23,6 @@
*
*/
-
namespace OC\AppFramework\Utility;
use OCP\AppFramework\Utility\ITimeFactory;
@@ -37,7 +37,7 @@ class TimeFactory implements ITimeFactory {
/**
* @return int the result of a call to time()
*/
- public function getTime() {
+ public function getTime() : int {
return time();
}