Skip to content

Commit

Permalink
fix: Update return type of sort method in ArrayMap class
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Apr 1, 2024
1 parent 7578c7f commit aca50a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArrayMap.php
Expand Up @@ -200,7 +200,7 @@ public function delete($key): self
*
* @return $this
*/
public function sort(string $key = null, array $sortRule = []): self
public function sort(string $key = null, array $sortRule = []): mixed
{
$data = $this->get($key);
if (!\is_array($data)) {
Expand Down

0 comments on commit aca50a5

Please sign in to comment.