projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
lib
/
PhpParser
/
Node
/
Stmt
/
While_.php
diff --git
a/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php
b/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php
index afad1b259ec468404d27f443ec3ddc1d874ed07f..671207b8fa4d5a2400f68a313e6983614fb2a26e 100644
(file)
--- a/
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php
+++ b/
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php
@@
-1,4
+1,4
@@
-<?php
+<?php
declare(strict_types=1);
namespace PhpParser\Node\Stmt;
namespace PhpParser\Node\Stmt;
@@
-8,23
+8,27
@@
class While_ extends Node\Stmt
{
/** @var Node\Expr Condition */
public $cond;
{
/** @var Node\Expr Condition */
public $cond;
- /** @var Node[] Statements */
+ /** @var Node
\Stmt
[] Statements */
public $stmts;
/**
* Constructs a while node.
*
public $stmts;
/**
* Constructs a while node.
*
- * @param Node\Expr $cond Condition
- * @param Node
[]
$stmts Statements
- * @param array $attributes Additional attributes
+ * @param Node\Expr
$cond Condition
+ * @param Node
\Stmt[]
$stmts Statements
+ * @param array
$attributes Additional attributes
*/
*/
- public function __construct(Node\Expr $cond, array $stmts =
array(), array $attributes = array()
) {
+ public function __construct(Node\Expr $cond, array $stmts =
[], array $attributes = []
) {
parent::__construct($attributes);
$this->cond = $cond;
$this->stmts = $stmts;
}
parent::__construct($attributes);
$this->cond = $cond;
$this->stmts = $stmts;
}
- public function getSubNodeNames() {
- return array('cond', 'stmts');
+ public function getSubNodeNames() : array {
+ return ['cond', 'stmts'];
+ }
+
+ public function getType() : string {
+ return 'Stmt_While';
}
}
}
}