wapmorgan / PhpDeprecationDetector

Analyzer of PHP code to search issues with deprecated functionality in newer interpreter versions.
http://wapmorgan.github.io/PhpDeprecationDetector/
BSD 3-Clause "New" or "Revised" License
364 stars 37 forks source link

Report Curly Braces on indices/offsets? #59

Open Targren opened 3 years ago

Targren commented 3 years ago

"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 1 year ago

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 year ago

+1

roneymaia commented 1 year ago

+1

NathanGibbs3 commented 1 year ago

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 10 months ago

+1