Deprecated in PHP 8.0: Required parameter

Created on 13 September 2022, over 2 years ago
Updated 9 January 2024, about 1 year ago

Problem/Motivation

When switching to PHP8, I got the following issue:
PHP Deprecated: Required parameter $data follows optional parameter $module_name in /var/www/html/docroot/sites/all/modules/contrib/block_access/block_access.module on line 717

Proposed resolution

Update parameters in the function declaration.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Alina Basarabeanu

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.

  • 🇬🇧United Kingdom steven jones

    Thanks for this MR, this is exactly what's needed here.

  • Status changed to Closed: won't fix 7 days ago
  • 🇧🇪Belgium dieterholvoet Brussels

    Drupal 7 is EOL as of 5 January 2025 and so is the Drupal 7 version of this module. Marking as Closed (won't fix). Feel free to re-open if this issue is still present in any supported version of the module.

Production build 0.71.5 2024