Skip to content

Commit

Permalink
Merge pull request #2 from gabfr/fix/php74-deprecation
Browse files Browse the repository at this point in the history
fix: array access with curly braces deprecation in PHP 7.4
  • Loading branch information
klaussilveira authored Feb 11, 2020
2 parents 0fe8458 + be5b5e3 commit 8a56097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config/Loader/FileLoader/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private function isJson($string)
{
return (
!empty($string) &&
($string{0} === '[' || $string{0} === '{')
($string[0] === '[' || $string[0] === '{')
);
}

Expand Down

0 comments on commit 8a56097

Please sign in to comment.