From 5d29979bf0fb042f01e3e01980d8031d2b7c9d8b Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 13 Apr 2022 16:05:06 +0300 Subject: [PATCH] Added `dragon-code/support` version 6 support --- composer.json | 2 +- src/Concerns/Castable.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 47e3530..dc081a3 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "php": "^7.3 || ^8.0", "ext-json": "*", "dragon-code/contracts": "^2.17", - "dragon-code/support": "^5.0", + "dragon-code/support": "^5.0 || ^6.0", "symfony/http-foundation": "^4.0 || ^5.0 || ^6.0" }, "require-dev": { diff --git a/src/Concerns/Castable.php b/src/Concerns/Castable.php index bac6082..0d6ee9d 100644 --- a/src/Concerns/Castable.php +++ b/src/Concerns/Castable.php @@ -4,7 +4,7 @@ namespace DragonCode\SimpleDataTransferObject\Concerns; -use DragonCode\Support\Facades\Helpers\Ables\Stringable; +use DragonCode\Support\Facades\Helpers\Str; /** @mixin \DragonCode\SimpleDataTransferObject\DataTransferObject */ trait Castable @@ -22,7 +22,7 @@ protected function cast($value, string $key) protected function getCastMethod(string $key, string $prefix = 'cast'): string { - return (string) Stringable::of($key) + return (string) Str::of($key) ->trim() ->start($prefix . '_') ->camel();