Skip to content

Commit

Permalink
nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Apr 9, 2021
1 parent b0ba90a commit a2b3eba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/SchemalessAttributesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
trait SchemalessAttributesTrait
{
public function initializeSchemalessAttributesTrait()
public function initializeSchemalessAttributesTrait(): void
{
foreach ($this->getSchemalessAttributes() as $attribute) {
$this->casts[$attribute] = SchemalessAttributesCast::class;
Expand All @@ -21,9 +21,7 @@ public function initializeSchemalessAttributesTrait()

public function getSchemalessAttributes(): array
{
return isset($this->schemalessAttributes)
? $this->schemalessAttributes
: [];
return $this->schemalessAttributes ?? [];
}

/**
Expand Down

0 comments on commit a2b3eba

Please sign in to comment.