Skip to content

Commit

Permalink
allow empty column values
Browse files Browse the repository at this point in the history
This prevents errors after adding a column without defaulting it to "{}".
  • Loading branch information
guidocella committed Mar 16, 2021
1 parent da90fd1 commit af18ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TranslationsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

class TranslationsManager
{
protected array $translations;
protected ?array $translations;

public function __construct(array $translations)
public function __construct(?array $translations)
{
$this->translations = $translations;
}
Expand Down

0 comments on commit af18ad6

Please sign in to comment.