Skip to content

Commit

Permalink
Lets not type stuff that is not supposed to be typed
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenDHansen committed Oct 6, 2023
1 parent 8efe5b3 commit 9dc5f62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Casts/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@
namespace OwenIt\Auditing\Tests\Casts;

use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;
use OwenIt\Auditing\Tests\Models\Money as MoneyValueObject;

class Money implements CastsAttributes
{
/**
* {@inheritdoc}
*/
public function get(Model $model, string $key, mixed $value, array $attributes): MoneyValueObject
public function get($model, string $key, $value, array $attributes): MoneyValueObject
{
return new MoneyValueObject($value, 'USD');
}

/**
* {@inheritdoc}
*/
public function set(Model $model, string $key, mixed $value, array $attributes): mixed
public function set($model, string $key, $value, array $attributes): mixed
{
return $value;
}
Expand Down

0 comments on commit 9dc5f62

Please sign in to comment.