Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Expr / Yield_.php
index f3ca88e05bf0ef02c8fe9c95e66020d941d95d61..a28a701a5e37e96a95628d9b3384353e5641aa35 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Expr;
 
@@ -18,13 +18,17 @@ class Yield_ extends Expr
      * @param null|Expr $key        Key expression
      * @param array     $attributes Additional attributes
      */
-    public function __construct(Expr $value = null, Expr $key = null, array $attributes = array()) {
+    public function __construct(Expr $value = null, Expr $key = null, array $attributes = []) {
         parent::__construct($attributes);
         $this->key = $key;
         $this->value = $value;
     }
 
-    public function getSubNodeNames() {
-        return array('key', 'value');
+    public function getSubNodeNames() : array {
+        return ['key', 'value'];
+    }
+    
+    public function getType() : string {
+        return 'Expr_Yield';
     }
 }