PHP Warning SplObjectStorage::offsetExists() expects parameter 1 to be object, null given

Created on 8 May 2023, about 1 year ago
Updated 26 May 2023, about 1 year ago

Problem/Motivation

Using bricks with PHP 8.1 (and πŸ› PHP8 error Fixed ) leads to an error:
TypeError: SplObjectStorage::offsetExists(): Argument #1 ($object) must be of type object, null given in SplObjectStorage->offsetExists() (line 105 of modules/contrib/bricks/src/Bricks.php).

Providing a fix

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece bserem

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

Comments & Activities

Production build 0.69.0 2024