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