diff vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 5fb285c0d0e3
children 129ea1e6d783
line wrap: on
line diff
--- a/vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php	Thu Apr 26 11:26:54 2018 +0100
+++ b/vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php	Tue Jul 10 15:07:59 2018 +0100
@@ -76,7 +76,7 @@
      */
     public function __construct($keyword)
     {
-        if (self::isLanguageConstruct($keyword)) {
+        if (!self::isLanguageConstruct($keyword)) {
             throw new \InvalidArgumentException('Unknown language construct: ' . $keyword);
         }
 
@@ -129,6 +129,18 @@
     }
 
     /**
+     * Gets the file name from a language construct.
+     *
+     * (Hint: it always returns false)
+     *
+     * @return bool false
+     */
+    public function getFileName()
+    {
+        return false;
+    }
+
+    /**
      * To string.
      *
      * @return string