Skip to content

Commit

Permalink
fix: case of data is empty (null)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Feb 17, 2025
1 parent 355231f commit 0ae7a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function setData(array $data): void
/**
* Returns data collection.
*/
public function getData(?string $language = null): array
public function getData(?string $language = null): ?array
{
if ($language) {
if (empty($this->data[$language])) {
Expand Down

0 comments on commit 0ae7a0a

Please sign in to comment.