diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-21 14:06:51 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-21 19:55:49 +0100 |
commit | aa060f5332ecabbd94cc1511c0b254a30cc7beb6 (patch) | |
tree | 156f1a91f07f34560c5c43eed8301593386c4772 /lib/public/AppFramework/Utility | |
parent | 7c6cc013ebec7bbdecbf9f5567d620fcfbb37212 (diff) | |
download | nextcloud-server-aa060f5332ecabbd94cc1511c0b254a30cc7beb6.tar.gz nextcloud-server-aa060f5332ecabbd94cc1511c0b254a30cc7beb6.zip |
Strict OCP\AppFramework\Utility\IControllerMethodReflector
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/AppFramework/Utility')
-rw-r--r-- | lib/public/AppFramework/Utility/IControllerMethodReflector.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/public/AppFramework/Utility/IControllerMethodReflector.php b/lib/public/AppFramework/Utility/IControllerMethodReflector.php index e9fb4a5a969..e2074b9fe00 100644 --- a/lib/public/AppFramework/Utility/IControllerMethodReflector.php +++ b/lib/public/AppFramework/Utility/IControllerMethodReflector.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -40,7 +41,7 @@ interface IControllerMethodReflector { * @return void * @since 8.0.0 */ - public function reflect($object, $method); + public function reflect($object, string $method); /** * Inspects the PHPDoc parameters for types @@ -51,13 +52,13 @@ interface IControllerMethodReflector { * would return int or null if not existing * @since 8.0.0 */ - public function getType($parameter); + public function getType(string $parameter); /** * @return array the arguments of the method with key => default value * @since 8.0.0 */ - public function getParameters(); + public function getParameters(): array; /** * Check if a method contains an annotation @@ -66,6 +67,6 @@ interface IControllerMethodReflector { * @return bool true if the annotation is found * @since 8.0.0 */ - public function hasAnnotation($name); + public function hasAnnotation(string $name): bool; } |