@@ -312,6 +312,9 @@ |
||
| 312 | 312 | return new ReflectionExtension($extName); |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | + /** |
|
| 316 | + * @return string |
|
| 317 | + */ |
|
| 315 | 318 | public function getExtensionName() |
| 316 | 319 | { |
| 317 | 320 | if (!$this->classLikeNode) { |
@@ -106,6 +106,9 @@ discard block |
||
| 106 | 106 | return new ReflectionExtension($extName); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @return string |
|
| 111 | + */ |
|
| 109 | 112 | public function getExtensionName() |
| 110 | 113 | { |
| 111 | 114 | if (!$this->functionLikeNode) { |
@@ -223,7 +226,7 @@ discard block |
||
| 223 | 226 | /** |
| 224 | 227 | * Gets the specified return type of a function |
| 225 | 228 | * |
| 226 | - * @return \ReflectionType |
|
| 229 | + * @return null|ReflectionType |
|
| 227 | 230 | * |
| 228 | 231 | * @link http://php.net/manual/en/reflectionfunctionabstract.getreturntype.php |
| 229 | 232 | */ |
@@ -222,7 +222,7 @@ |
||
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | 224 | * {@inheritDoc} |
| 225 | - * @return ReflectionClass|null The class of the method that declared the |
|
| 225 | + * @return \ReflectionClass|null The class of the method that declared the |
|
| 226 | 226 | * parameter, if any. |
| 227 | 227 | */ |
| 228 | 228 | public function getDeclaringClass() |
@@ -189,6 +189,9 @@ discard block |
||
| 189 | 189 | $node->returnType = $this->fixType($node->returnType, self::RETURN_TYPES); |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | + /** |
|
| 193 | + * @param integer $contextType |
|
| 194 | + */ |
|
| 192 | 195 | private function fixType($node, $contextType) |
| 193 | 196 | { |
| 194 | 197 | $typeAsString = $this->getTypeAsString($node); |
@@ -232,6 +235,9 @@ discard block |
||
| 232 | 235 | return strval($node); |
| 233 | 236 | } |
| 234 | 237 | |
| 238 | + /** |
|
| 239 | + * @param string $typeName |
|
| 240 | + */ |
|
| 235 | 241 | private function isTypeDefinedForContext($typeName, $contextType) |
| 236 | 242 | { |
| 237 | 243 | return |