ide-php
ide-php copied to clipboard
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in php 7.4
I upgraded php on my local machine to PHP 8.1.
The package stopped working on PHP 7.4 and above. It was giving
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in ~/.atom/packages/ide-php/vendor/netresearch/jsonmapper/src/JsonMapper.php on line 300
Steps to Reproduce
- Enable PHP 7.4 or above on local machine
- Disable ide-php
- Enable ide-php
- This will show the error message

I followed the message and found the code.

Once I replace the {0} with [0] the problem is solved

Loving the package makes my life so much easier. Thank You! <3