diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-01-15 09:27:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 09:27:37 +0100 |
commit | d44de92c31cd5ecc1258e052279dedf3286839c8 (patch) | |
tree | 35d35389c554f9c1ccb5af422da8fc7106be9025 /lib | |
parent | 0f729e2cd375710890536f5968532879a3a7875d (diff) | |
parent | 7ffd62bf955cac39123015a362ccd68ea16bb185 (diff) | |
download | nextcloud-server-d44de92c31cd5ecc1258e052279dedf3286839c8.tar.gz nextcloud-server-d44de92c31cd5ecc1258e052279dedf3286839c8.zip |
Merge pull request #7838 from nextcloud/timefactory_strict
Make the ITimeFactory strict + return types
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Utility/TimeFactory.php | 4 | ||||
-rw-r--r-- | lib/public/AppFramework/Utility/ITimeFactory.php | 4 |
2 files changed, 4 insertions, 4 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(); } diff --git a/lib/public/AppFramework/Utility/ITimeFactory.php b/lib/public/AppFramework/Utility/ITimeFactory.php index eb65abf8501..7951d6ad8e6 100644 --- a/lib/public/AppFramework/Utility/ITimeFactory.php +++ b/lib/public/AppFramework/Utility/ITimeFactory.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -21,7 +22,6 @@ * */ - namespace OCP\AppFramework\Utility; @@ -35,6 +35,6 @@ interface ITimeFactory { * @return int the result of a call to time() * @since 8.0.0 */ - public function getTime(); + public function getTime() : int; } |