Skip to content

project.php: Add checks for glob()/getcwd() failing - #1666

Merged
cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:level-7-project-glob
Oct 2, 2026
Merged

cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:level-7-project-glob

Conversation

@bpfoley

@bpfoley bpfoley commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Both of these function can fail and return false in somewhat unusual situations. Nonetheless this fixes a number of PHPstan level 7 warnings, and produces more comprehensible errors in these cases.

Both of these function can fail and return `false` in somewhat
unusual situations. Nonetheless this fixes a number of PHPstan
level 7 warnings, and produces more comprehensible errors in
these cases.
@cpeel
cpeel merged commit 357889c into DistributedProofreaders:master Oct 2, 2026
12 checks passed
@bpfoley
bpfoley deleted the level-7-project-glob branch October 2, 2026 21:43
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