Skip to content

Commit

Permalink
Remove deprecated types
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Sep 1, 2023
1 parent 8fa2c11 commit 5cb9aae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/Command/TinkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ class TinkerCommand extends HyperfCommand
protected array $defaultCasters = [
'Hyperf\DbConnection\Model\Model' => 'FriendsOfHyperf\Tinker\TinkerCaster::castModel',
'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
5 changes: 2 additions & 3 deletions src/TinkerCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function castApplication($app): array
/**
* Get an array representing the properties of a collection.
*
* @param \Hyperf\Collection\Collection|\Hyperf\Utils\Collection $collection
* @param \Hyperf\Collection\Collection $collection
*/
public static function castCollection($collection): array
{
Expand All @@ -92,8 +92,7 @@ public static function castHtmlString($htmlString): array

/**
* Get an array representing the properties of a fluent string.
*
* @param \Hyperf\Stringable\Stringable|\Hyperf\Utils\Stringable $stringable
* @param \Hyperf\Stringable\Stringable $stringable
*/
public static function castStringable($stringable): array
{
Expand Down

0 comments on commit 5cb9aae

Please sign in to comment.