Fatal error: A void function must not return a value

Created on 4 April 2024, 6 months ago

Problem/Motivation

After installing the 2.1.0 version, I get the following fatal error on any page:

Fatal error: A void function must not return a value in /var/www/html/docroot/modules/contrib/simple_menu_permissions/simple_menu_permissions.module on line 100

Steps to reproduce

  1. Install version 2.1.0
  2. Run drush cr
  3. Go to any page on your site. You should see the error.

Proposed resolution

The simple_menu_permissions_form_menu_edit_form_alter function defines its return type as void. However, it's possible for this function to return a string (see lines 93-101) of the function. The return type should be changed to string.

Remaining tasks

Patch incoming.

πŸ› Bug report
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jsutta United States

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

Comments & Activities

Production build 0.71.5 2024