Beta 10 version is incompatible with PHP 7.4

Created on 23 March 2022, almost 3 years ago
Updated 28 August 2023, over 1 year ago

Problem

Beta 8 version is incompatible with PHP 7.4

Steps to reproduce

1. Make sure that your system has PHP 7.3 or 7.4 (Drupal 9 minimal requirements)
2. Run "drush cr"
3. Observe the error "PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in /var/www/public/docroot/modules/contrib/uswds_ckeditor_integration/src/Form/GridDialog.php on line 56"

Line 56 of GridDialog.php has code that generates fatal error in any version of PHP lower than 8.0: the union type specified by pipe character |. The module page says that it is compatible with PHP version starting with 7.2. Drupal 9 minimal requirement is 7.3

Proposed resolution

Change the code, make it compatible with PHP ver. 7.3 as D9 minimal version.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States calmforce

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024