Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Const_.php
index 8b2eecd51d727f28036286bf6b16b961b05d4a52..c1786bedd8a3f04cac4861a97be7e1f8981b068b 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -15,12 +15,16 @@ class Const_ extends Node\Stmt
      * @param Node\Const_[] $consts     Constant declarations
      * @param array         $attributes Additional attributes
      */
-    public function __construct(array $consts, array $attributes = array()) {
+    public function __construct(array $consts, array $attributes = []) {
         parent::__construct($attributes);
         $this->consts = $consts;
     }
 
-    public function getSubNodeNames() {
-        return array('consts');
+    public function getSubNodeNames() : array {
+        return ['consts'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_Const';
     }
 }