Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in php 7.4 #167

Open
funasdog opened this issue Feb 28, 2022 · 0 comments

Comments

@funasdog
Copy link

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

  1. Enable PHP 7.4 or above on local machine
  2. Disable ide-php
  3. Enable ide-php
  4. This will show the error message

image

I followed the message and found the code.

image

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

image

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant