Skip to content

SiteConfig: Make get()'s return type the singleton.#1597

Merged
cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:siteconfig-tycheck
Jul 11, 2026
Merged

SiteConfig: Make get()'s return type the singleton.#1597
cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:siteconfig-tycheck

Conversation

@bpfoley

@bpfoley bpfoley commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

So that phpstan can statically check SiteConfig::get()->foo, and we get a more comprehensible runtime error if SiteConfig somehow isn't loaded.

So that phpstan can statically check SiteConfig::get()->foo, and
we get a more comprehensible runtime error if SiteConfig somehow
isn't loaded.
@bpfoley

bpfoley commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator Author

@cpeel cpeel merged commit 88367b1 into DistributedProofreaders:master Jul 11, 2026
12 checks passed
@bpfoley bpfoley deleted the siteconfig-tycheck branch July 12, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants