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