Skip to content

Commit 1fb8dff

Browse files
committed
fix: 更新多个类的__call方法参数类型注释以提高类型准确性
1 parent 3feca13 commit 1fb8dff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/View/Components/Factory.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@ public function __construct($output)
5252
/**
5353
* Dynamically handle calls into the component instance.
5454
*
55-
* @param string $method
56-
* @param array $parameters
57-
* @return mixed
5855
* @throws InvalidArgumentException
5956
*/
60-
public function __call($method, $parameters)
57+
public function __call(string $method, array $parameters): mixed
6158
{
6259
$component = '\FriendsOfHyperf\PrettyConsole\View\Components\\' . ucfirst($method);
6360

0 commit comments

Comments
 (0)