Skip to content

Commit

Permalink
php 7.4 compatibility : fn is now a reserved keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
pk-fr committed Nov 16, 2019
1 parent f9ed322 commit 6343c37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/classes/parser_extensions/my_node_visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
4 changes: 2 additions & 2 deletions include/classes/scrambler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ 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',
'apache_request_headers' // seems that it is not included in get_defined_functions ..
);

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' );
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
// Use and abuse at your own risks.
//========================================================================

$yakpro_po_version = "2.0.5";
$yakpro_po_version = "2.0.6";

?>

0 comments on commit 6343c37

Please sign in to comment.