Skip to content

Commit

Permalink
php 7.4 compatibility : string offset access syntax with curly braces…
Browse files Browse the repository at this point in the history
… is deprecated
  • Loading branch information
pk-fr committed Mar 6, 2020
1 parent da8637b commit 9fcb688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/classes/parser_extensions/my_pretty_printer.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-2017 Pascal KISSIAN
// Copyright (c) 2015-2020 Pascal KISSIAN
//
// Published under the MIT License
// Consider it as a proof of concept!
Expand All @@ -19,7 +19,7 @@ private function obfuscate_string($str)
$result = '';
for($i=0;$i<$l;++$i)
{
$result .= mt_rand(0,1) ? "\x".dechex(ord($str{$i})) : "\\".decoct(ord($str{$i}));
$result .= mt_rand(0,1) ? "\x".dechex(ord($str[$i])) : "\\".decoct(ord($str[$i]));
}
return $result;
}
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.9";
$yakpro_po_version = "2.0.10";

?>

0 comments on commit 9fcb688

Please sign in to comment.