Search for Resources and Solutions

Array and string offset access syntax with curly braces is deprecated

Array and string offset access syntax with curly braces is deprecated is an error generated by the Google SDK in the last year with PHP 7.4. I have tried many times to update their SDK but always the support missing for PHP 7.4. Midrub can run on PHP 7.4. The problem is in its dependencies. 

You could fix the error in the file vendor/google/src/service/Google_Utils.php at line 58. Instead the braces {} use []. In the next week(21/02 - 28/02) i will test more to detect where are used these braces and will fix this on CodeCanyon's version. The problem will be still for users which have already downloaded it. 

Below i will add the list with files where should be replaced these braces to be supported by PHP 7.4 +

  • vendor/google/src/service/Google_Utils.php at line 58. Instead the braces {} use []
  • vendor/abraham/twitteroauth/src/SignatureMethod.php at line 61. Instead the braces {} use []


Was this article helpful?