Commit cb47da2
Fix PHPStan failure by only enforcing fullBaseUrl in web context
The security check was throwing an exception during PHPStan static
analysis because it runs with debug=false but no HTTP_HOST. Modified
the logic to only enforce the fullBaseUrl requirement when in a web
request context (HTTP_HOST is present). This allows CLI tools like
PHPStan to load the bootstrap without errors while still maintaining
the security check for actual web requests in production.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent d4574fa commit cb47da2
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| |||
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
| |||
0 commit comments