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