Skip to content

Commit

Permalink
Adds requires (#186)
Browse files Browse the repository at this point in the history
* Adds requires

* ⚙️chore(dependencies) add hyperf/coroutine to composer.json

* ⚙️ chore(async-task) import Coroutine\go function

* fix

* Adds `hyperf/stringable`

* Instead

* Remove utils depends

* ⚙️ chore(dependencies) remove hyperf/utils from composer.json

* ⚙️chore(macros) removed unused mixins from RegisterMixinListener.php

* ⚙️chore(dependencies) add suggestion for hyperf/http-server in composer.json

* ⚙️chore(dependencies) upgrade hyperf/context to v3.0.16

---------

Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia authored Apr 12, 2023
1 parent 253382d commit 293e172
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"hyperf/contract": "~3.0.0",
"hyperf/di": "~3.0.0",
"hyperf/framework": "~3.0.0",
"hyperf/stringable": "~3.0.0",
"hyperf/tappable": "~3.0.0",
"psy/psysh": "^0.10.0|^0.11.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Command/TinkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +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\Utils\Stringable $stringable
* @param \Hyperf\Stringable\Stringable $stringable
*/
public static function castStringable($stringable): array
{
Expand Down

0 comments on commit 293e172

Please sign in to comment.