mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Add PHPUnit
This commit is contained in:
parent
1467777757
commit
5959dd49d7
1366 changed files with 118633 additions and 13161 deletions
|
@ -4,23 +4,22 @@ namespace PhpParser\Node\Expr;
|
|||
|
||||
use PhpParser\Node\Expr;
|
||||
|
||||
abstract class Cast extends Expr
|
||||
{
|
||||
abstract class Cast extends Expr {
|
||||
/** @var Expr Expression */
|
||||
public $expr;
|
||||
public Expr $expr;
|
||||
|
||||
/**
|
||||
* Constructs a cast node.
|
||||
*
|
||||
* @param Expr $expr Expression
|
||||
* @param array $attributes Additional attributes
|
||||
* @param Expr $expr Expression
|
||||
* @param array<string, mixed> $attributes Additional attributes
|
||||
*/
|
||||
public function __construct(Expr $expr, array $attributes = []) {
|
||||
$this->attributes = $attributes;
|
||||
$this->expr = $expr;
|
||||
}
|
||||
|
||||
public function getSubNodeNames() : array {
|
||||
public function getSubNodeNames(): array {
|
||||
return ['expr'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue