Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was 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

@funasdog

Description

@funasdog

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions