Repository navigation
Commit efdf83d
committed
fix: required_without() premature return inside foreach loop
Bug: return statements inside the foreach loop caused only the first
field in the otherFields list to be checked. All subsequent fields
were silently ignored.
- Refactored: foreach loop no longer contains early returns; each
iteration independently determines whether to return false.
- Added: null coalescing for field key access
- Added: explicit is_array() check before array access to prevent
warnings when dot_array_search() returns null
- Added: validation for missing field key on dot-path fields1 parent ac18654 commit efdf83d
1 file changed
Lines changed: 31 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
429 | 428 | | |
430 | | - | |
431 | | - | |
432 | | - | |
| 429 | + | |
| 430 | + | |
433 | 431 | | |
434 | | - | |
435 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
436 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
437 | 449 | | |
438 | | - | |
| 450 | + | |
439 | 451 | | |
440 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
441 | 455 | | |
442 | 456 | | |
443 | 457 | | |
| |||
0 commit comments