Skip to content

Commit

Permalink
Merge pull request #20 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Added `dragon-code/support` version 6 support
  • Loading branch information
Andrey Helldar authored Apr 13, 2022
2 parents be15496 + 5d29979 commit 717c8c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/Concerns/Castable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 717c8c7

Please sign in to comment.