diff --git a/Gettext/Extractors/PhpCode.php b/Gettext/Extractors/PhpCode.php index c3892501..416a62fd 100644 --- a/Gettext/Extractors/PhpCode.php +++ b/Gettext/Extractors/PhpCode.php @@ -75,6 +75,9 @@ public static function parse($file, Entries $entries) if (!isset($args[0])) { continue; } + if (in_array(self::$functions[$function], array('p__', 'n__')) && !isset($args[1])) { + continue; + } switch (self::$functions[$function]) { case '__':