Warning: parameter by reference

Created on 22 August 2016, over 8 years ago
Updated 20 January 2023, almost 2 years ago

I get the following warning:
Warning: Parameter 1 to bodyclasses_bodyclasses_user_role() expected to be a reference, value given in bodyclasses_get_bodyclasses() (line 81 of /var/www/html/hyper/sites/all/modules/contrib/bodyclasses/bodyclasses.module).

none of the callback functions use the $variables to alter any values
thus they do not need to receive the variable via reference

function bodyclasses_bodyclasses_user_role(&$variables) {
function bodyclasses_bodyclasses_context(&$variables) {
function bodyclasses_bodyclasses_views(&$variables) {

instead be just

function bodyclasses_bodyclasses_user_role($variables) {
function bodyclasses_bodyclasses_context($variables) {
function bodyclasses_bodyclasses_views($variables) {
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇴Romania reszli Târgu Mureș

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.

Production build 0.71.5 2024