Syntax error in SamlauthRoleMappingForm.php on line 45

Created on 6 July 2022, almost 2 years ago
Updated 26 July 2023, 11 months ago

Problem/Motivation

When runnning "drush cache-rebuild", the following error message is shown:
PHP Parse error: syntax error, unexpected ')' in web/modules/contrib/samlauth/modules/samlauth_user_roles/src/Form/SamlauthRoleMappingForm.php on line 45

The first installation of this module was in version 3.5, on a Drupal running in version 9.3.12 and PHP 7.4.
In version 3.6, the syntax error still exists.

Steps to reproduce

  1. Install samlauth on Drupal 9.3.* with PHP 7.4 (may be the PHP version or it's configuration is the problem)
  2. Run drush cache-rebuild

Proposed resolution

Remove the comma at the end of line 45. It is the last parameter for the constructor and no comma is required at this position.

πŸ› Bug report
Status

Closed: outdated

Version

3.6

Component

Code

Created by

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.

  • πŸ‡³πŸ‡±Netherlands roderik Amsterdam,NL / Budapest,HU

    This unfortunately fell out of the 8.x-3.7 release (between a revert and a double-revert)... it's now fixed in 8.x-3.9.

Production build 0.69.0 2024