Skip to content

Commit

Permalink
Compatible with Hyperf\Utils\Stringable (#187)
Browse files Browse the repository at this point in the history
Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia authored Apr 14, 2023
1 parent 293e172 commit 804e574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Command/TinkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class TinkerCommand extends HyperfCommand
'Hyperf\Redis\Redis' => 'FriendsOfHyperf\Tinker\TinkerCaster::castRedis',
'Hyperf\Utils\Collection' => 'FriendsOfHyperf\Tinker\TinkerCaster::castCollection',
'Hyperf\Collection\Collection' => 'FriendsOfHyperf\Tinker\TinkerCaster::castCollection',
'Hyperf\Utils\Stringable' => 'FriendsOfHyperf\Tinker\TinkerCaster::castStringable',
'Hyperf\Stringable\Stringable' => 'FriendsOfHyperf\Tinker\TinkerCaster::castStringable',
'Hyperf\ViewEngine\HtmlString' => 'FriendsOfHyperf\Tinker\TinkerCaster::castHtmlString',
'Symfony\Component\Console\Application' => 'FriendsOfHyperf\Tinker\TinkerCaster::castApplication',
Expand Down
2 changes: 1 addition & 1 deletion src/TinkerCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function castHtmlString($htmlString): array
/**
* Get an array representing the properties of a fluent string.
*
* @param \Hyperf\Stringable\Stringable $stringable
* @param \Hyperf\Stringable\Stringable|\Hyperf\Utils\Stringable $stringable
*/
public static function castStringable($stringable): array
{
Expand Down

0 comments on commit 804e574

Please sign in to comment.