We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0ba90a commit a2b3ebaCopy full SHA for a2b3eba
src/SchemalessAttributesTrait.php
@@ -12,7 +12,7 @@
12
*/
13
trait SchemalessAttributesTrait
14
{
15
- public function initializeSchemalessAttributesTrait()
+ public function initializeSchemalessAttributesTrait(): void
16
17
foreach ($this->getSchemalessAttributes() as $attribute) {
18
$this->casts[$attribute] = SchemalessAttributesCast::class;
@@ -21,9 +21,7 @@ public function initializeSchemalessAttributesTrait()
21
22
public function getSchemalessAttributes(): array
23
24
- return isset($this->schemalessAttributes)
25
- ? $this->schemalessAttributes
26
- : [];
+ return $this->schemalessAttributes ?? [];
27
}
28
29
/**
0 commit comments