Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Declare_.php
index 32739f35fa415b2448036f70945b7b8f08904c0a..305e07d5a1a3c564e93c022cdb337a03d8b79a70 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -8,23 +8,27 @@ class Declare_ extends Node\Stmt
 {
     /** @var DeclareDeclare[] List of declares */
     public $declares;
-    /** @var Node[] Statements */
+    /** @var Node\Stmt[]|null Statements */
     public $stmts;
 
     /**
      * Constructs a declare node.
      *
      * @param DeclareDeclare[] $declares   List of declares
-     * @param Node[]|null      $stmts      Statements
+     * @param Node\Stmt[]|null $stmts      Statements
      * @param array            $attributes Additional attributes
      */
-    public function __construct(array $declares, array $stmts = null, array $attributes = array()) {
+    public function __construct(array $declares, array $stmts = null, array $attributes = []) {
         parent::__construct($attributes);
         $this->declares = $declares;
         $this->stmts = $stmts;
     }
 
-    public function getSubNodeNames() {
-        return array('declares', 'stmts');
+    public function getSubNodeNames() : array {
+        return ['declares', 'stmts'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_Declare';
     }
 }