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

Report Curly Braces on indices/offsets? #59

Open
Targren opened this issue Jun 3, 2021 · 5 comments
Open

Report Curly Braces on indices/offsets? #59

Targren opened this issue Jun 3, 2021 · 5 comments

Comments

@Targren
Copy link

Targren commented Jun 3, 2021

"Deprecated: Array and string offset access syntax with curly braces is deprecated"

Can a check for this be added (or does it already exist and I'm failing to do something to enable it)?

@davejenx
Copy link

I agree this would be a good addition. In PHP 8.0, this becomes a fatal error:
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported
So this feature becomes more important now that PHP 7.4 has reached end of life.

@effeks
Copy link

effeks commented Dec 9, 2022

+1

1 similar comment
@roneymaia
Copy link

+1

@NathanGibbs3
Copy link
Contributor

NathanGibbs3 commented Apr 24, 2023

Here are the relevant PHP manual links for this.
Deprecation: https://www.php.net/manual/en/migration74.deprecated.php
Removal: https://www.php.net/manual/en/migration80.incompatible.php

NathanGibbs3 added a commit to NathanGibbs3/PhpDeprecationDetector that referenced this issue Apr 24, 2023
Adds checks for Array and string offset access syntax with curly
braces.
Allows phpdd to detect this and issue the appropriate deprecation
or removal warning.
Curly brace syntax was:
 - Deprecated in PHP 7.4.
 - Removed in PHP 8.0.
@javyer
Copy link

javyer commented Dec 12, 2023

+1

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

6 participants