You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[12.x] Add test coverage for Uri::withQueryIfMissing method (#54923)
* Add initial test for Uri::withQueryIfMissing method
This test verifies that the withQueryIfMissing method adds parameters only when they don't exist
while preserving the values of existing parameters.
* Expand withQueryIfMissing tests to cover nested arrays
This commit adds cases for complex nested arrays and indexed arrays to ensure
the method correctly handles multi-dimensional data structures in query parameters.
* Complete withQueryIfMissing tests for advanced array handling
This commit finalizes tests for the withQueryIfMissing method, covering:
- Partial merging of associative arrays
- Preservation of indexed arrays
- Verification of both encoded query strings and parsed arrays
* docs: add PHPDoc annotation for withQueryIfMissing method
* Update Uri.php
---------
Co-authored-by: Taylor Otwell <taylor@laravel.com>
0 commit comments