Commit 738e45f
committed
fix(env): resolve PHPStan “left side of ?? is not nullable” for getenv()
Normalized getenv() handling to convert its false return value into null, ensuring the expression becomes nullable as required by PHPStan.
Updated the environment resolution chain to use an explicit ternary for getenv() so the final ?? $default fallback remains valid.
Fully resolves PHPStan warning:
“Expression on left side of ?? is not nullable.”1 parent 8515857 commit 738e45f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments