Notice: Trying to access array offset on value of type null in _watcher_static() (line 3127 of watcher.module).

Created on 19 November 2021, about 3 years ago
Updated 29 August 2023, about 1 year ago

Problem/Motivation

Upgraded to PHP74

Steps to reproduce

Install PHP74 and run your website

Proposed resolution

Notice: Trying to access array offset on value of type null in _watcher_static() (line 3127 of watcher.module).

Change this

if (is_NULL($value)) {
return $static[$name];
}

to this

if (is_NULL($value)) {
return (empty($name) || !isset($static[$name]) ? NULL : $static[$name]);
}

πŸ’¬ Support request
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States webservant316

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

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