Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lets not type stuff that is not supposed to be typed #870

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
{
return $value;
}
Expand Down
Loading