diff --git a/README.md b/README.md index c0e1973..bb9f365 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ hello\world('foo', 'bar' . 'baz'); You'll get a syntax tree looking roughly like this: -``` +```php array( 0: Stmt_Echo( exprs: array( diff --git a/lib/PhpParser/Node/Expr/Closure.php b/lib/PhpParser/Node/Expr/Closure.php index 3a04b11..2686086 100644 --- a/lib/PhpParser/Node/Expr/Closure.php +++ b/lib/PhpParser/Node/Expr/Closure.php @@ -16,7 +16,7 @@ class Closure extends Expr implements FunctionLike public $params; /** @var ClosureUse[] use()s */ public $uses; - /** @var null|string|Node\Name[] Return type */ + /** @var null|string|Node\Name Return type */ public $returnType; /** @var Node[] Statements */ public $stmts; diff --git a/lib/PhpParser/Node/FunctionLike.php b/lib/PhpParser/Node/FunctionLike.php index f111cde..efe4333 100644 --- a/lib/PhpParser/Node/FunctionLike.php +++ b/lib/PhpParser/Node/FunctionLike.php @@ -23,7 +23,7 @@ interface FunctionLike extends Node /** * Get the declared return type or null * - * @return null|string|Node\Name[] + * @return null|string|Node\Name */ public function getReturnType(); diff --git a/lib/PhpParser/Node/Stmt/ClassMethod.php b/lib/PhpParser/Node/Stmt/ClassMethod.php index 808f907..956a8be 100644 --- a/lib/PhpParser/Node/Stmt/ClassMethod.php +++ b/lib/PhpParser/Node/Stmt/ClassMethod.php @@ -16,7 +16,7 @@ class ClassMethod extends Node\Stmt implements FunctionLike public $name; /** @var Node\Param[] Parameters */ public $params; - /** @var null|string|Node\Name[] Return type */ + /** @var null|string|Node\Name Return type */ public $returnType; /** @var Node[] Statements */ public $stmts; diff --git a/lib/PhpParser/Node/Stmt/Function_.php b/lib/PhpParser/Node/Stmt/Function_.php index b7021f5..2df68e5 100644 --- a/lib/PhpParser/Node/Stmt/Function_.php +++ b/lib/PhpParser/Node/Stmt/Function_.php @@ -13,7 +13,7 @@ class Function_ extends Node\Stmt implements FunctionLike public $name; /** @var Node\Param[] Parameters */ public $params; - /** @var null|string|Node\Name[] Return type */ + /** @var null|string|Node\Name Return type */ public $returnType; /** @var Node[] Statements */ public $stmts;