X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FReflection%2FReflectionLanguageConstruct.php;fp=vendor%2Fpsy%2Fpsysh%2Fsrc%2FReflection%2FReflectionLanguageConstruct.php;h=bda0819467b19ece0a9f0cb69a724d6cd5a0cea4;hb=419f97be044f1aebd0713921ee604841127e9e84;hp=3e5325b8560511f14ba967728da1dbabd3d0cada;hpb=052617e40b525f8b817d84c29b1c04951f427069;p=yaffs-website diff --git a/vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php b/vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php index 3e5325b85..bda081946 100644 --- a/vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php +++ b/vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php @@ -76,7 +76,7 @@ class ReflectionLanguageConstruct extends \ReflectionFunctionAbstract */ public function __construct($keyword) { - if (self::isLanguageConstruct($keyword)) { + if (!self::isLanguageConstruct($keyword)) { throw new \InvalidArgumentException('Unknown language construct: ' . $keyword); } @@ -128,6 +128,18 @@ class ReflectionLanguageConstruct extends \ReflectionFunctionAbstract return $params; } + /** + * Gets the file name from a language construct. + * + * (Hint: it always returns false) + * + * @return bool false + */ + public function getFileName() + { + return false; + } + /** * To string. *