@@ -24,8 +24,8 @@ |
||
24 | 24 | /** |
25 | 25 | * Initializes reflection instance for given AST-node |
26 | 26 | * |
27 | - * @param string|\Closure $functionName The name of the function to reflect or a closure. |
|
28 | - * @param Function_|null $functionNode Function node AST |
|
27 | + * @param string $functionName The name of the function to reflect or a closure. |
|
28 | + * @param Function_ $functionNode Function node AST |
|
29 | 29 | */ |
30 | 30 | public function __construct($functionName, Function_ $functionNode) |
31 | 31 | { |
@@ -306,6 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | /** |
308 | 308 | * {@inheritdoc} |
309 | + * @param string $name |
|
309 | 310 | */ |
310 | 311 | public function getMethod($name) |
311 | 312 | { |
@@ -499,6 +500,7 @@ discard block |
||
499 | 500 | |
500 | 501 | /** |
501 | 502 | * {@inheritdoc} |
503 | + * @param string $name |
|
502 | 504 | */ |
503 | 505 | public function hasMethod($name) |
504 | 506 | { |
@@ -529,6 +531,7 @@ discard block |
||
529 | 531 | |
530 | 532 | /** |
531 | 533 | * {@inheritDoc} |
534 | + * @param string $interfaceName |
|
532 | 535 | */ |
533 | 536 | public function implementsInterface($interfaceName) |
534 | 537 | { |
@@ -159,6 +159,9 @@ |
||
159 | 159 | return ''; |
160 | 160 | } |
161 | 161 | |
162 | + /** |
|
163 | + * @return string |
|
164 | + */ |
|
162 | 165 | protected function resolveScalarMagicConstNamespace() |
163 | 166 | { |
164 | 167 | if (method_exists($this->context, 'getNamespaceName')) { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Initializes reflection instance |
31 | 31 | * |
32 | - * @param string|object $argument Class name or instance of object |
|
32 | + * @param string|null $argument Class name or instance of object |
|
33 | 33 | * @param ClassLike $classLikeNode AST node for class |
34 | 34 | */ |
35 | 35 | public function __construct($argument, ClassLike $classLikeNode = null) |
@@ -38,6 +38,8 @@ |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Initializes reflection data |
41 | + * @param boolean $allowsNull |
|
42 | + * @param boolean $isBuiltin |
|
41 | 43 | */ |
42 | 44 | public function __construct($type, $allowsNull, $isBuiltin) |
43 | 45 | { |
@@ -174,7 +174,7 @@ |
||
174 | 174 | /** |
175 | 175 | * Gets the specified return type of a function |
176 | 176 | * |
177 | - * @return \ReflectionType |
|
177 | + * @return null|ReflectionType |
|
178 | 178 | * |
179 | 179 | * @link http://php.net/manual/en/reflectionfunctionabstract.getreturntype.php |
180 | 180 | */ |