You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I'm not sure if I could just clone the repo, create a branch, fix it and create a merge request. Please let me know if I could fix that myself as I have no experience in that.)
The text was updated successfully, but these errors were encountered:
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /Users/artpi/GIT/artpi-tools/vendor/evernote/evernote-cloud-sdk-php/src/Thrift/Transport/THttpClient.php on line 100```
Array and string offset access syntax with curly braces is no longer supported in xxxxxxxxxxxxxxxx/vendor/evernote/evernote-cloud-sdk-php/src/Thrift/Transport/THttpClient.php on line 100
mikehudson
added a commit
to mikehudson/evernote-cloud-sdk-php
that referenced
this issue
Jul 7, 2022
I am using PHP 7.4.4 and get the error
Array and string offset access syntax with curly braces is deprecated
using the Evernote Client.Example:
This fails in
src/Thrift/Transport/THttpClient.php:100
.Changing
if ((TStringFuncFactory::create()->strlen($uri) > 0) && ($uri{0} != '/')) {
to
if ((TStringFuncFactory::create()->strlen($uri) > 0) && (substr($uri, 0, 1) != '/')) {
resolves the issue.
(I'm not sure if I could just clone the repo, create a branch, fix it and create a merge request. Please let me know if I could fix that myself as I have no experience in that.)
The text was updated successfully, but these errors were encountered: