Skip to content

Commit

Permalink
style: Fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aydinfatih committed Mar 14, 2024
1 parent 11df5f6 commit eb92eaa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Casts/ConfigValueCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public function get(Model $model, string $key, mixed $value, array $attributes)

public function set(Model $model, string $key, mixed $value, array $attributes)
{

$type = $attributes['type']?->value ?? $attributes['type'] ?? null;

switch ($type) {
Expand Down
2 changes: 1 addition & 1 deletion tests/LaravelConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public function it_returns_in_caster_type_if_type_is_custom_caster_with_param():
$config = factory(Config::class)->create([
'name' => 'fatih.was.here',
'val' => [ConfigDataType::DATE],
'type' => AsEnumCollection::class . ':' . ConfigDataType::class,
'type' => AsEnumCollection::class.':'.ConfigDataType::class,
]);

$response = $this->laravelConfig->get($config->name);
Expand Down

0 comments on commit eb92eaa

Please sign in to comment.