Report Curly Braces on indices/offsets?
Targren opened this issue · 5 comments
Targren commented
"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 commented
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 commented
+1
roneymaia commented
+1
NathanGibbs3 commented
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
javyer commented
+1