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

Fixed deprecated syntax #60

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

andrewl64
Copy link

Fixed "Array and string offset access syntax with curly braces is deprecated" error in PHP 7.4+ by replacing all occurrences of $someName{x} with $someName[x]

andrewl64 added 4 commits May 3, 2021 14:16
Fixed "Array and string offset access syntax with curly braces is deprecated" error in PHP 7.4+ by replacing all occurrences of $someName{x} with $someName[x]

CHANGES MADE:
    Changed $column_or_index{0} to $column_or_index[0] in line 180
    Changed $tables[$i]{0} to $tables[$i][0] in line 309
Fixed "Array and string offset access syntax with curly braces is deprecated" error in PHP 7.4+ by replacing all occurrences of $someName{x} with $someName[x]

CHANGES MADE:
    Changed $tables[$i]{0} to $tables[$i][0] in line 242
Fixed "Array and string offset access syntax with curly braces is deprecated" error in PHP 7.4+ by replacing all occurrences of $someName{x} with $someName[x]

CHANGES MADE:
    Changed $file{0} to $file[0] in line 186
Fixed "Array and string offset access syntax with curly braces is deprecated" error in PHP 7.4+ by replacing all occurrences of $someName{x} with $someName[x]

CHANGES MADE:
    Changed $file['name']{0} to $file['name'][0] in line 212, 257, 325 and 388
@andrewl64
Copy link
Author

andrewl64 commented May 3, 2021

Replacing all occurrences of $someName{x} with $someName[x] in the above four files fixed the errors described in issue #61 and the backup is running successfully again.

Tested on: Unyson v2.7.24 | WordPress 5.7.1 | PHP 8.0.5

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

Successfully merging this pull request may close these issues.

1 participant