diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-02-21 22:56:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 22:56:40 +0100 |
commit | fb41a93a95cd7908a22c1a6372ce9955a225a19d (patch) | |
tree | 81943207e78335c525e4fcfea6cf760eb028b2c0 /lib/public/AppFramework | |
parent | f01754a389cf30cbebd391f812e46548dc062cc2 (diff) | |
parent | 48597758938f474579f9ff1b21884f6bfb7c8c8f (diff) | |
download | nextcloud-server-fb41a93a95cd7908a22c1a6372ce9955a225a19d.tar.gz nextcloud-server-fb41a93a95cd7908a22c1a6372ce9955a225a19d.zip |
Merge pull request #8473 from nextcloud/strict_cmr
Strict OCP\AppFramework\Utility\IControllerMethodReflector
Diffstat (limited to 'lib/public/AppFramework')
-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; } |