Skip to content

Commit

Permalink
raw data now must be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
reecube committed Dec 21, 2018
1 parent cc626c5 commit e7d9286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DataModelGenerator/EntityField.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class EntityField
protected $value;

/**
* @var null|array
* @var array
*/
protected $rawData;
protected $rawData = [];

public static function parseType($value): string
{
Expand Down Expand Up @@ -136,12 +136,12 @@ public function setValue(?string $value): void
$this->value = $value;
}

public function getRawData(): ?array
public function getRawData(): array
{
return $this->rawData;
}

public function setRawData(?array $rawData): void
public function setRawData(array $rawData): void
{
$this->rawData = $rawData;
}
Expand Down

0 comments on commit e7d9286

Please sign in to comment.