Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / GroupUse.php
index 30837dd6bb52c78fcd36794952fdd06bdd3a4d74..e0d7e604c74b65d20e7d8abea25f309901609158 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -22,14 +22,18 @@ class GroupUse extends Stmt
      * @param int      $type       Type of group use
      * @param array    $attributes Additional attributes
      */
-    public function __construct(Name $prefix, array $uses, $type = Use_::TYPE_NORMAL, array $attributes = array()) {
+    public function __construct(Name $prefix, array $uses, int $type = Use_::TYPE_NORMAL, array $attributes = []) {
         parent::__construct($attributes);
         $this->type = $type;
         $this->prefix = $prefix;
         $this->uses = $uses;
     }
 
-    public function getSubNodeNames() {
-        return array('type', 'prefix', 'uses');
+    public function getSubNodeNames() : array {
+        return ['type', 'prefix', 'uses'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_GroupUse';
     }
 }