Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Scalar / MagicConst / Method.php
index 7791b9d6c56eaeb762e73d01229058dcecfceef0..d168d56f105a979afcb5702e18f4e0fe414afe5f 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Scalar\MagicConst;
 
@@ -6,7 +6,11 @@ use PhpParser\Node\Scalar\MagicConst;
 
 class Method extends MagicConst
 {
-    public function getName() {
+    public function getName() : string {
         return '__METHOD__';
     }
-}
\ No newline at end of file
+    
+    public function getType() : string {
+        return 'Scalar_MagicConst_Method';
+    }
+}