Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array and string offset access syntax with curly braces is no longer supported in /var/www/html/AIO/PhpSerial.php on line 318 #37

Open
nc8q opened this issue Nov 7, 2022 · 1 comment

Comments

@nc8q
Copy link

nc8q commented Nov 7, 2022

Reference:
"The reason is that with PHP 7.4 the array and string offset access syntax using curly braces is deprecated and it was removed entirely in PHP 8.0"

Quote:

I replaced $parity{0} with $parity[0] and
both return{0} with return[0] and
now there are no errors.

Regards, Chuck

@bohnelang
Copy link

I guess, the better way is to use substr($parity,0,1) and substr($return,0,1) ist this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants