From 4414d112038512a4dc76ac0b5f992b8336ef55c6 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 9 Aug 2023 12:39:52 +0200 Subject: [PATCH] Delete get() and set() types --- tests/VirtualColumnTest.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/VirtualColumnTest.php b/tests/VirtualColumnTest.php index 1ec2506..a35043e 100644 --- a/tests/VirtualColumnTest.php +++ b/tests/VirtualColumnTest.php @@ -189,22 +189,12 @@ class FooModel extends Model class EncryptedCast implements CastsAttributes { - /** - * Cast the given value. - * - * @param array $attributes - */ - public function get(Model $model, string $key, mixed $value, array $attributes): mixed + public function get($model, $key, $value, $attributes) { return Crypt::decryptString($value); } - /** - * Prepare the given value for storage. - * - * @param array $attributes - */ - public function set(Model $model, string $key, mixed $value, array $attributes): mixed + public function set($model, $key, $value, $attributes) { return Crypt::encryptString($value); }