mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-26 20:04:48 +01:00
Merge branch '1.x'
This commit is contained in:
commit
a5db176903
@ -22,7 +22,7 @@ hello\world('foo', 'bar' . 'baz');
|
|||||||
|
|
||||||
You'll get a syntax tree looking roughly like this:
|
You'll get a syntax tree looking roughly like this:
|
||||||
|
|
||||||
```
|
```php
|
||||||
array(
|
array(
|
||||||
0: Stmt_Echo(
|
0: Stmt_Echo(
|
||||||
exprs: array(
|
exprs: array(
|
||||||
|
@ -16,7 +16,7 @@ class Closure extends Expr implements FunctionLike
|
|||||||
public $params;
|
public $params;
|
||||||
/** @var ClosureUse[] use()s */
|
/** @var ClosureUse[] use()s */
|
||||||
public $uses;
|
public $uses;
|
||||||
/** @var null|string|Node\Name[] Return type */
|
/** @var null|string|Node\Name Return type */
|
||||||
public $returnType;
|
public $returnType;
|
||||||
/** @var Node[] Statements */
|
/** @var Node[] Statements */
|
||||||
public $stmts;
|
public $stmts;
|
||||||
|
@ -23,7 +23,7 @@ interface FunctionLike extends Node
|
|||||||
/**
|
/**
|
||||||
* Get the declared return type or null
|
* Get the declared return type or null
|
||||||
*
|
*
|
||||||
* @return null|string|Node\Name[]
|
* @return null|string|Node\Name
|
||||||
*/
|
*/
|
||||||
public function getReturnType();
|
public function getReturnType();
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class ClassMethod extends Node\Stmt implements FunctionLike
|
|||||||
public $name;
|
public $name;
|
||||||
/** @var Node\Param[] Parameters */
|
/** @var Node\Param[] Parameters */
|
||||||
public $params;
|
public $params;
|
||||||
/** @var null|string|Node\Name[] Return type */
|
/** @var null|string|Node\Name Return type */
|
||||||
public $returnType;
|
public $returnType;
|
||||||
/** @var Node[] Statements */
|
/** @var Node[] Statements */
|
||||||
public $stmts;
|
public $stmts;
|
||||||
|
@ -13,7 +13,7 @@ class Function_ extends Node\Stmt implements FunctionLike
|
|||||||
public $name;
|
public $name;
|
||||||
/** @var Node\Param[] Parameters */
|
/** @var Node\Param[] Parameters */
|
||||||
public $params;
|
public $params;
|
||||||
/** @var null|string|Node\Name[] Return type */
|
/** @var null|string|Node\Name Return type */
|
||||||
public $returnType;
|
public $returnType;
|
||||||
/** @var Node[] Statements */
|
/** @var Node[] Statements */
|
||||||
public $stmts;
|
public $stmts;
|
||||||
|
Loading…
Reference in New Issue
Block a user