ParseError: syntax error, unexpected ')',

Created on 29 May 2024, 7 months ago
Updated 15 September 2024, 3 months ago

Problem/Motivation

ParseError: syntax error, unexpected ')', expecting variable (T_VARIABLE) in Composer\Autoload\{closure}() (line 105 of /code/web/modules/contrib/better_exposed_filters/src/Plugin/views/exposed_form/BetterExposedFilters.php)

Steps to reproduce

Getting this error while searching with some keyword in the filter.

Proposed resolution

Removed the unexpected semicolon

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

6.0

Component

Code

Created by

🇮🇳India nikhilesh gupta Hyderabad

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

Comments & Activities

  • Issue created by @nikhilesh gupta
  • Status changed to Needs work 7 months ago
  • 🇺🇸United States smustgrave

    If you turn to MR pretty sure that's a PHPCS issue.

  • 🇬🇧United Kingdom MrDaleSmith

    This is caused by the module having been updated to be PHP 8 only - the syntax for commas in parameter lists is incompatible with PHP 7.

  • Status changed to Closed: outdated 7 months ago
  • 🇺🇸United States smustgrave

    Would recommend using the patch until able to update to php8.1

    With 7.0.x the new development branch which is just D10 + D11 reluctant to go back and update for php7.4 since D9 is EOL.

  • 🇨🇭Switzerland nugten

    For the next googler who lands here. The last version of the module compatible with PHP 7.3 (yup, sometimes you find yourself stuck upgrading super old projects) is version 6.0.3 (6.0.3)

    The project, starting from 6.0.3 requires then the module jquery_ui version ^1.6, which on it's side requires at least Drupal ^9.2.

Production build 0.71.5 2024