@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | if (!is_string($typeHintName) || !preg_match('/^\\w+$/', $typeHintName)) { |
| 42 | 42 | throw new \InvalidArgumentException( |
| 43 | 43 | sprintf( |
| 44 | - "All elements of option 'supportedBuiltinTypeHints' array " . |
|
| 44 | + "All elements of option 'supportedBuiltinTypeHints' array ". |
|
| 45 | 45 | "must be a single word string. Element %s (%s) isn't valid.", |
| 46 | 46 | $index, |
| 47 | 47 | var_export($typeHintName, true) |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | public function enterNode(Node $node) { |
| 110 | 110 | if ( |
| 111 | - ($node instanceof Stmt\Function_) || |
|
| 111 | + ($node instanceof Stmt\Function_) || |
|
| 112 | 112 | ($node instanceof Stmt\ClassMethod) || |
| 113 | 113 | ($node instanceof Expr\Closure) |
| 114 | 114 | ) { |
@@ -143,9 +143,9 @@ discard block |
||
| 143 | 143 | // where a builtin type could be recognized as a class |
| 144 | 144 | // name instead. |
| 145 | 145 | if ( |
| 146 | - ($node instanceof Name) && |
|
| 146 | + ($node instanceof Name) && |
|
| 147 | 147 | !($node->isFullyQualified()) && |
| 148 | - (count($node->parts) == 1) && |
|
| 148 | + (count($node->parts) == 1) && |
|
| 149 | 149 | in_array(strval(implode('\\', $node->parts)), $this->supportedBuiltinTypeHints) |
| 150 | 150 | ) { |
| 151 | 151 | return strval(implode('\\', $node->parts)); |