Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / HaltCompiler.php
index c33ec9f1da56205f3e191ef616543b895e60f1ab..c86d71e1482b087847675484fcc0caf41b760b9a 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -15,12 +15,16 @@ class HaltCompiler extends Stmt
      * @param string $remaining  Remaining text after halt compiler statement.
      * @param array  $attributes Additional attributes
      */
-    public function __construct($remaining, array $attributes = array()) {
+    public function __construct(string $remaining, array $attributes = []) {
         parent::__construct($attributes);
         $this->remaining = $remaining;
     }
 
-    public function getSubNodeNames() {
-        return array('remaining');
+    public function getSubNodeNames() : array {
+        return ['remaining'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_HaltCompiler';
     }
 }