Issue Bug Resolved

#110644Numeric site identifier breaks Site creation

Oliver Bartsch 09/07/26, 07:41 updated 09/07/26, 19:10

Description

A site whose identifier consists of digits only (e.g. config/sites/123) makes every backend and frontend request fail with a TypeError: Site::__construct(): Argument #1 ($identifier) must be of type string, int given. getAllResolvedSiteData() casts to string but then uses the value as an array key, where PHP converts it back to int. Regression of #110358 ; resolveAllExistingSitesRaw() is unaffected because it still casts in place.

Reviews 2

History 24

  1. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-07T19:10:09+00:00" > 09/07/26, 19:10 </span>

    Applied in changeset commit:b4cba32675033f9acd686ee743e2b513d2301cbf.