Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Expr / PreInc.php
index 06356028ce26f9ebd6b93b545c7755322f2f177f..68be695b860e61b10626b884bc5b29923c9a2319 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Expr;
 
@@ -15,12 +15,16 @@ class PreInc 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_PreInc';
     }
 }