Required parameter $original_path follows optional parameter $path

Created on 17 January 2022, over 2 years ago
Updated 1 April 2024, 3 months ago

Running the module with PHP 8 shows the following notice.

Deprecated: Required parameter $original_path follows optional parameter $path in subpathauto.module on line 72

The message is caused by the following function definition.

function subpathauto_lookup_subpath($action, $path = '', $original_path, $path_language = NULL)

$original_path is put between two parameters with default values ($path and $path_language) which is deprecated in PHP 8.

Either $path is left without default value or the parameters are re-ordered.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

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

    The issue particularly affects sites running on PHP version 8.0.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.69.0 2024