From 1452978581dcafd105bd264dee3c14ad8cad5866 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <gohr@cosmocode.de> Date: Tue, 15 Mar 2016 11:47:31 +0100 Subject: [PATCH] adjusted for scrutinizer hints --- lib/plugins/remote.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plugins/remote.php b/lib/plugins/remote.php index 4668f1934..c2253dbd5 100644 --- a/lib/plugins/remote.php +++ b/lib/plugins/remote.php @@ -30,7 +30,7 @@ abstract class DokuWiki_Remote_Plugin extends DokuWiki_Plugin { // skip parent methods, only methods further down are exported $declaredin = $method->getDeclaringClass()->name; if($declaredin == 'DokuWiki_Plugin' || $declaredin == 'DokuWiki_Remote_Plugin') continue; - $method_name = $method->getName(); + $method_name = $method->name; if(substr($method_name, 0, 1) == '_') continue; // strip asterisks @@ -50,7 +50,7 @@ abstract class DokuWiki_Remote_Plugin extends DokuWiki_Plugin { // get parameter type from doc block type hint foreach($method->getParameters() as $parameter) { - $name = $parameter->getName(); + $name = $parameter->name; $type = 'string'; // we default to string if(preg_match('/^@param[ \t]+([\w|\[\]]+)[ \t]\$'.$name.'/m', $doc, $m)){ $type = $this->cleanTypeHint($m[1]); @@ -75,7 +75,7 @@ abstract class DokuWiki_Remote_Plugin extends DokuWiki_Plugin { /** * Matches the given type hint against the valid options for the remote API * - * @param $hint + * @param string $hint * @return string */ protected function cleanTypeHint($hint) { -- GitLab