Commit 2762ad8
committed
fix(PathHelper): resolve PHPStan type errors from realpath() returning false
- Ensure realpath() result is validated before assignment
- Convert false return value to fallback dirname(__DIR__, 2)
- Guarantee $basePath is always a string, matching declared type
- Prevent passing string|false into join() which strictly requires string
Resolves PHPStan warnings:
• Static property $basePath does not accept string|false
• PathHelper::join() expects string, string|false given1 parent 738e45f commit 2762ad8
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
0 commit comments