Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be682e3
commit b1ba365
Showing
7 changed files
with
57 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,54 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Expr; | ||
namespace PhpParser\Node\Expr { | ||
use PhpParser\Node\Arg; | ||
use PhpParser\Node\Expr; | ||
use PhpParser\Node\Name; | ||
use PhpParser\Node\Stmt; | ||
use PhpParser\Node\VariadicPlaceholder; | ||
|
||
use PhpParser\Node\Arg; | ||
use PhpParser\Node\Expr; | ||
use PhpParser\Node\VariadicPlaceholder; | ||
abstract class CallLike extends Expr { | ||
/** | ||
* @return list<Arg|VariadicPlaceholder> | ||
*/ | ||
abstract public function getRawArgs(): array; | ||
|
||
abstract class CallLike extends Expr { | ||
/** | ||
* @return list<Arg|VariadicPlaceholder> | ||
*/ | ||
abstract public function getRawArgs(): array; | ||
public function isFirstClassCallable(): bool {} | ||
|
||
public function isFirstClassCallable(): bool {} | ||
/** | ||
* @psalm-pure | ||
* @return list<Arg> | ||
*/ | ||
public function getArgs(): array{} | ||
} | ||
} | ||
|
||
namespace PhpParser\Node\Stmt { | ||
use PhpParser\Node; | ||
use PhpParser\Node\Expr; | ||
|
||
class Catch_ extends Node\Stmt | ||
{ | ||
/** @var non-empty-list<Node\Name> Types of exceptions to catch */ | ||
public $types; | ||
/** @var Expr\Variable|null Variable for exception */ | ||
public $var; | ||
/** @var list<Node\Stmt> Statements */ | ||
public $stmts; | ||
|
||
/** | ||
* Constructs a catch node. | ||
* | ||
* @param non-empty-list<Name> $types Types of exceptions to catch | ||
* @param Expr\Variable|null $var Variable for exception | ||
* @param list<Stmt> $stmts Statements | ||
* @param array $attributes Additional attributes | ||
*/ | ||
public function __construct( | ||
array $types, Expr\Variable $var = null, array $stmts = [], array $attributes = [] | ||
) {} | ||
|
||
/** | ||
* @psalm-pure | ||
* @return list<Arg> | ||
*/ | ||
public function getArgs(): array{} | ||
/** @return list<string> */ | ||
public function getSubNodeNames() : array {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters