Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 5d29979

Browse files
author
Andrey Helldar
committed
Added dragon-code/support version 6 support
1 parent be15496 commit 5d29979

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php": "^7.3 || ^8.0",
2525
"ext-json": "*",
2626
"dragon-code/contracts": "^2.17",
27-
"dragon-code/support": "^5.0",
27+
"dragon-code/support": "^5.0 || ^6.0",
2828
"symfony/http-foundation": "^4.0 || ^5.0 || ^6.0"
2929
},
3030
"require-dev": {

src/Concerns/Castable.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace DragonCode\SimpleDataTransferObject\Concerns;
66

7-
use DragonCode\Support\Facades\Helpers\Ables\Stringable;
7+
use DragonCode\Support\Facades\Helpers\Str;
88

99
/** @mixin \DragonCode\SimpleDataTransferObject\DataTransferObject */
1010
trait Castable
@@ -22,7 +22,7 @@ protected function cast($value, string $key)
2222

2323
protected function getCastMethod(string $key, string $prefix = 'cast'): string
2424
{
25-
return (string) Stringable::of($key)
25+
return (string) Str::of($key)
2626
->trim()
2727
->start($prefix . '_')
2828
->camel();

0 commit comments

Comments
 (0)