Skip to content

Commit 442eb6d

Browse files
authored
refactor: update phpstan property type (#22)
1 parent 3e05c8f commit 442eb6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/UserInterface/Eloquent/Concerns/HasSchemalessAttributes.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
namespace ARKEcosystem\Foundation\UserInterface\Eloquent\Concerns;
66

77
use Illuminate\Database\Eloquent\Builder;
8-
use Illuminate\Database\Eloquent\Model;
8+
use Spatie\SchemalessAttributes\SchemalessAttributes;
99

10+
/**
11+
* @property SchemalessAttributes $extra_attributes
12+
*/
1013
trait HasSchemalessAttributes
1114
{
1215
/**
@@ -97,7 +100,7 @@ public function fillMetaAttributes(array $attributes): self
97100
*
98101
* @return self
99102
*/
100-
public static function updateOrCreateWithMeta(array $attributes, array $values): Model
103+
public static function updateOrCreateWithMeta(array $attributes, array $values): self
101104
{
102105
$model = static::withExtraAttributes($attributes)->first();
103106

0 commit comments

Comments
 (0)