Commit f21e955
committed
Do not load config from empty cache file
This change solves a fatal error that I've been encountering, whenever
the cache file is present, but empty:
Uncaught TypeError: Cannot assign int to property
Laminas\ConfigAggregator\ConfigAggregator::$config of type array
So, this change returns false if the config file is present but empty.
Signed-off-by: Matthew Setter <matthew@matthewsetter.com>1 parent 49df885 commit f21e955
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
233 | 241 | | |
234 | 242 | | |
235 | 243 | | |
| |||
0 commit comments