Skip to content

Commit

Permalink
Fix toArray method in Json class
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Jan 22, 2024
1 parent 6be6e6a commit b1cf911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public function save(string $saveTo, bool $console = true): void
}
}

public function toArray(bool $is_associative = true): ?array
public function toArray(bool $is_associative = true): array
{
if (! $this->contents) {
return $this->contents;
return [];
}

if (is_array($this->contents)) {
Expand Down

0 comments on commit b1cf911

Please sign in to comment.