Deprecated function: Optional parameter $path declared before required parameter $arg

Created on 5 February 2022, almost 3 years ago
Updated 15 March 2023, over 1 year ago

Problem/Motivation

On PHP 8.1 there are two deprecation warnings when opening site with this module activated:

Deprecated function: Optional parameter $path declared before required parameter $arg is implicitly treated as a required parameter in roleassign_help() (line 130 in x\sites\all\modules\roleassign\roleassign.module).

Deprecated function: Optional parameter $path declared before required parameter $arg is implicitly treated as a required parameter in _roleassign_help() (line 250 in x\sites\all\modules\roleassign\roleassign.admin.inc).

Steps to reproduce

Install module as usual and PHP deprecation warning appears.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia poker10

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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.

Production build 0.71.5 2024