Issue Bug Closed

#109461Using null as an array offset is deprecated

Markus Klein 04/01/26, 12:44 updated 04/21/26, 11:30

Description

With PHP 8.5 this is deprecated.
Fix all usages.

Reviews 3

History 716

  1. Gerrit Code Review pushed patch set 1 for main to change 93512 status Accepted Under Review <span data-processor="relativetime" data-value="2026-04-01T12:44:51+00:00" > 04/01/26, 12:44 </span>

  2. Thomas Rawiel commented <span data-processor="relativetime" data-value="2026-04-09T12:23:33+00:00" > 04/09/26, 12:23 </span>

    There’s another occurence of this in cms-core/Classes/Http/Client/GuzzleClientFactory.php

    public function getClient(?string $context = null)

    $context can be null, therefore line 44 will throw a runtime deprecation notice

    $allowedHosts = $httpOptions[‘allowed_hosts’][$context] ?? null;

  3. Markus Klein commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-04-09T18:40:08+00:00" > 04/09/26, 18:40 </span>

    Applied in changeset commit:98d314a35c5e6ddabd8a0dfa823dc8d4131b1a1e.