Empty index operator not supported for strings
Reports the usages of empty index operator ([]
) on strings.
Starting from PHP 7.1, applying the empty index operator on a string throws a fatal error.
See Creating/modifying with square bracket syntax (php.net) for details.
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023