Commit 01e60c2
committed
fix: gracefully skip unreadable .env in Boot::loadDotEnv
Test ResponseSendTest::testHeaderOverride fails when tests run in random
order because the spawned process (#[RunInSeparateProcess]) calls
Boot::loadDotEnv() -> DotEnv::parse(), which throws InvalidArgument-
Exception when .env exists but is unreadable. The fix catches the
exception in loadDotEnv() so .env errors are silently ignored - .env
is optional.1 parent f3829fe commit 01e60c2
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
| |||
0 commit comments