Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Use_.php
index 6c89ebb1beef21f8907a837d13c40e61e3e8cd46..dafc1090f47ccc1a87e6c7eb4a026514fb3fdbcc 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -31,13 +31,17 @@ class Use_ extends Stmt
      * @param int      $type       Type of alias
      * @param array    $attributes Additional attributes
      */
-    public function __construct(array $uses, $type = self::TYPE_NORMAL, array $attributes = array()) {
+    public function __construct(array $uses, int $type = self::TYPE_NORMAL, array $attributes = []) {
         parent::__construct($attributes);
         $this->type = $type;
         $this->uses = $uses;
     }
 
-    public function getSubNodeNames() {
-        return array('type', 'uses');
+    public function getSubNodeNames() : array {
+        return ['type', 'uses'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_Use';
     }
 }