Skip to content

Commit 3aac620

Browse files
committed
Fixed bug in query method
1 parent 29b5c76 commit 3aac620

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- `Fixed` for any bug fixes.
1313
- `Security` in case of vulnerabilities
1414

15+
## [2.0.1] - 2023.02.03
16+
17+
### Fixed
18+
19+
- Fixed depreciated bug in `query` method
20+
1521
## [2.0.0] - 2023.01.26
1622

1723
### Added

src/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public static function order(array $array, array $order): array
372372

373373
public static function query(array $array): string
374374
{
375-
return http_build_query($array, NULL, '&', PHP_QUERY_RFC3986);
375+
return http_build_query($array, '', '&', PHP_QUERY_RFC3986);
376376
}
377377

378378
/**

0 commit comments

Comments
 (0)