Skip to content

Commit

Permalink
Adds PHP 8.1 compatability (OpenVK#671)
Browse files Browse the repository at this point in the history
Adds PHP 8.1 compatability
  • Loading branch information
celestora authored Aug 19, 2022
1 parent 6e17c44 commit d3ded41
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 105 deletions.
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function tr(string $stringId, ...$variables): string
}

for($i = 0; $i < sizeof($variables); $i++)
$output = preg_replace("%(?<!\\\\)(\\$)" . ($i + 1) . "%", $variables[$i], $output);
$output = preg_replace("%(?<!\\\\)(\\$)" . ($i + 1) . "%", (string) $variables[$i], $output);
}

return $output;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"php": "~7.3",
"php": "~7.3||~8.1",
"guzzlehttp/guzzle": "^6.5",
"komeiji-satori/curl": "dev-master",
"whichbrowser/parser": "dev-master",
Expand Down
Loading

0 comments on commit d3ded41

Please sign in to comment.