PHP Parse error: syntax error, unexpected token

Created on 2 January 2025, 4 months ago

Problem/Motivation

PHP Parse error: syntax error, unexpected token "else", expecting "function" in /var/www/html/docroot/core/modules/views/src/Plugin/views/PluginBase.php on line 420

Parse error: syntax error, unexpected token "else", expecting "function" in /var/www/html/docroot/core/modules/views/src/Plugin/views/PluginBase.php on line 420
[warning] Drush command terminated abnormally.

Steps to reproduce

Install Drupal 10.3.10 and php 8.3 and run drush cr

πŸ› Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

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

Comments & Activities

  • Issue created by @dhavalpanchal
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Views is Drupal core, so your issue needs to be made against Drupal core, not the separate Views module for Drupal 7.

    Besides that, I suspect you have a patch / merge request applied which has broken something, as that error doesn't happen without changes being made to the core codebase.

Production build 0.71.5 2024