Problem/Motivation

ParseError: syntax error, unexpected identifier "LOCK_REBUILD", expecting "=" in /app/web/modules/contrib/wse/modules/wse_menu/src/EventSubscriber/WseMenuRequestSubscriber.php on line 29 #0 /app/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/app/web/module...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Drupal\\wse_menu...')

The issue was encountered with PHP 8.1.30, but should also affect 8.2

Steps to reproduce

Update to wsw 2.0.0-alpha4 and run drush updb

Proposed resolution

Don't use typed constant declaration (requires PHP 8.3)

Remaining tasks

none

User interface changes

none

API changes

none

Data model changes

none

Comments

thomas.feichter created an issue. See original summary.

thomas.feichter’s picture

Status: Active » Needs review
StatusFileSize
new859 bytes

patch attached

  • amateescu committed 60ca416f on 2.0.x
    Issue #3486749 by thomas.feichter: Unexpected identifier "LOCK_REBUILD...

  • amateescu committed f701caa9 on 1.0.x
    Issue #3486749 by thomas.feichter: Unexpected identifier "LOCK_REBUILD...
amateescu’s picture

Status: Needs review » Fixed

Committed and pushed to 2.0.x and 1.0.x, thanks! I'll also release alpha5 in a few minutes.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.