Fix PHP 8 compatibility

Created on 17 March 2023, over 1 year ago

Problem/Motivation

Prior to PHP 8, characters in strings could be accessed with either curly braces or square brackets. PHP 8 only supports square brackets.

Steps to reproduce

  1. Install make_post.
  2. Run Drush with PHP 8 or higher.
  3. Get PHP fatal error.

Proposed resolution

Use square brackets to access string characters.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Darren Oh Lakeland, Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Darren Oh
  • @darren-oh opened merge request.
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States Darren Oh Lakeland, Florida

    Branch includes Drupal coding standards fixes. Works in my tests.

Production build 0.69.0 2024