diff --git a/Gettext/Extractors/PhpCode.php b/Gettext/Extractors/PhpCode.php index fb50b5ba..c3892501 100644 --- a/Gettext/Extractors/PhpCode.php +++ b/Gettext/Extractors/PhpCode.php @@ -71,6 +71,10 @@ public static function parse($file, Entries $entries) } $line = array_shift($args); + + if (!isset($args[0])) { + continue; + } switch (self::$functions[$function]) { case '__':