diff --git a/include/classes/parser_extensions/my_node_visitor.php b/include/classes/parser_extensions/my_node_visitor.php index 323e4f8..60a6c27 100644 --- a/include/classes/parser_extensions/my_node_visitor.php +++ b/include/classes/parser_extensions/my_node_visitor.php @@ -3,7 +3,7 @@ // Author: Pascal KISSIAN // Resume: http://pascal.kissian.net // -// Copyright (c) 2015-2020 Pascal KISSIAN +// Copyright (c) 2015-2021 Pascal KISSIAN // // Published under the MIT License // Consider it as a proof of concept! @@ -803,7 +803,7 @@ public function leaveNode(PhpParser\Node $node) $scrambler = $t_scrambler['label']; if ( ($node instanceof PhpParser\Node\Stmt\Label) || ($node instanceof PhpParser\Node\Stmt\Goto_) ) { - $name = $node->name; + $name = $this->get_identifier_name($node->name); if ( is_string($name) && (strlen($name) !== 0) ) { $r = $scrambler->scramble($name); diff --git a/version.php b/version.php index aeb6935..8f7472c 100644 --- a/version.php +++ b/version.php @@ -11,6 +11,6 @@ // Use and abuse at your own risks. //======================================================================== -$yakpro_po_version = "2.0.12"; +$yakpro_po_version = "2.0.13"; ?> \ No newline at end of file