Commit graph

3 commits

Author SHA1 Message Date
Bartosz Dziewoński
ccd423225f Add "implements Stringable" to every class with "function __toString()"
In PHP 8, but not in PHP 7.4, every class with a __toString() function
implicitly implements the Stringable interface. Therefore, the
behavior of checks like "instanceof Stringable" differs between these
PHP versions when such classes are involved. Make every such class
implement the interface so that the behavior will be consistent.

The PHP 7.4 fallback for the Stringable interface is provided by
symfony/polyfill-php80.

Change-Id: I3f0330c2555c7d3bf99b654ed3c0b0303e257ea1
2024-06-13 00:23:39 +00:00
daniel
da99bcd6aa SettingsBuilder: load settings recursively
Allows settings files to include other settings files.

Change-Id: Ieab7def1ada8b255e60c58927850a58e18309f6e
2022-01-18 21:51:35 +01:00
Derick Alangi
6aac95eb44 Settings: Introduce PhpSettingsSource for provisioning settings
This is an intermediate step before converting the merge strategies or
other configs/config schemas to YAML.

Bug: T297320
Change-Id: I91cd04d14f0ff86125fc8870984dab045c2098b5
2021-12-09 20:35:32 +00:00