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

Deprecated curly braces for array and string offsets in PHP 7.4 #118

Open
alex-rowe opened this issue Jan 19, 2021 · 0 comments
Open

Deprecated curly braces for array and string offsets in PHP 7.4 #118

alex-rowe opened this issue Jan 19, 2021 · 0 comments

Comments

@alex-rowe
Copy link

} else if ($relativepath{0} != '/') {

The following warning was shown in PHP Compatibility checks for PHP 7.4

FILE: .../mod/oublog/pluginfile.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 34 | WARNING | [x] Curly brace syntax for accessing array elements
    |         |     and string offsets has been deprecated in PHP
    |         |     7.4. Found: $relativepath{0}
    |         |     (PHPCompatibility.Syntax.RemovedCurlyBraceArrayAccess.Found)
----------------------------------------------------------------------
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

1 participant