Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information