Issue Bug Closed

#110220Adding additional data to LogRecord not possible

Benni Mack 07/17/26, 17:28 updated 08/11/26, 08:51

Description

Since the creation of the Logging API, it wasn’t possible to add additional data (see #39712), due to the following code which is clearly wrong.

    /**
     * Offset to set, required by ArrayAccess interface
     */
    public function offsetSet(mixed $offset, mixed $value): void
    {
        if (in_array($offset, $this->settableProperties, true)) {
            $this->{$offset} = $offset;
        }
    }

The $value is never used.

Reviews 3

History 25

  1. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-07-17T18:30:09+00:00" > 07/17/26, 18:30 </span>

    Applied in changeset commit:4ed011ccd09aa02730dd229bf0e037c04493c2e6.