From 6343c375ce417e35eb0fae1b2ddcbae982dfdc2e Mon Sep 17 00:00:00 2001 From: pk-fr Date: Sat, 16 Nov 2019 12:26:31 +0100 Subject: [PATCH] php 7.4 compatibility : fn is now a reserved keyword --- include/classes/parser_extensions/my_node_visitor.php | 2 +- include/classes/scrambler.php | 4 ++-- version.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/classes/parser_extensions/my_node_visitor.php b/include/classes/parser_extensions/my_node_visitor.php index 0618ea9..6968b95 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-2018 Pascal KISSIAN +// Copyright (c) 2015-2019 Pascal KISSIAN // // Published under the MIT License // Consider it as a proof of concept! diff --git a/include/classes/scrambler.php b/include/classes/scrambler.php index 880aa32..0ee31b0 100644 --- a/include/classes/scrambler.php +++ b/include/classes/scrambler.php @@ -45,7 +45,7 @@ class Scrambler private $t_reserved_function_names = array( '__halt_compiler','__autoload', 'abstract', 'and', 'array', 'as', 'bool', 'break', 'callable', 'case', 'catch', 'class', 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', - 'eval', 'exit', 'extends', 'false', 'final', 'finally', 'float', 'for', 'foreach', 'function', 'global', 'goto', 'if', + 'eval', 'exit', 'extends', 'false', 'final', 'finally', 'float', 'for', 'foreach', 'function', 'global', 'goto', 'if','fn', 'implements', 'include', 'include_once', 'instanceof', 'insteadof', 'int', 'interface', 'isset', 'list', 'namespace', 'new', 'null', 'or', 'print', 'private', 'protected', 'public', 'require', 'require_once', 'return', 'static', 'string', 'switch', 'throw', 'trait', 'true', 'try', 'unset', 'use', 'var', 'while', 'xor','yield', @@ -53,7 +53,7 @@ class Scrambler ); private $t_reserved_class_names = array('parent', 'self', 'static', // same reserved names for classes, interfaces and traits... - 'int', 'float', 'bool', 'string', 'true', 'false', 'null', 'void', 'iterable', 'object', 'resource', 'scalar', 'mixed', 'numeric' + 'int', 'float', 'bool', 'string', 'true', 'false', 'null', 'void', 'iterable', 'object', 'resource', 'scalar', 'mixed', 'numeric','fn' ); private $t_reserved_method_names = array('__construct', '__destruct', '__call', '__callstatic', '__get', '__set', '__isset', '__unset', '__sleep', '__wakeup', '__tostring', '__invoke', '__set_state', '__clone','__debuginfo' ); diff --git a/version.php b/version.php index 825b031..8860d9a 100644 --- a/version.php +++ b/version.php @@ -11,6 +11,6 @@ // Use and abuse at your own risks. //======================================================================== -$yakpro_po_version = "2.0.5"; +$yakpro_po_version = "2.0.6"; ?> \ No newline at end of file