Skip to content

Commit a1c6c9e

Browse files
committed
refactor: Update return types ReflectionHelper
1 parent 8fa633d commit a1c6c9e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

system/Test/ReflectionHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ trait ReflectionHelper
3131
* @param object|string $obj object or class name
3232
* @param string $method method name
3333
*
34-
* @return Closure
35-
* @phpstan-return Closure(mixed ...$args): mixed
34+
* @return Closure(mixed ...$args): mixed
3635
*
3736
* @throws ReflectionException
3837
*/

tests/system/Commands/Utilities/ConfigCheckTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ public function testCommandConfigCheckNonexistentClass(): void
8989

9090
public function testConfigCheckWithKintEnabledUsesKintD(): void
9191
{
92-
/** @var Closure(object): string $command */
92+
/**
93+
* @var Closure(mixed...): string
94+
*/
9395
$command = $this->getPrivateMethodInvoker(
9496
new ConfigCheck(service('logger'), service('commands')),
9597
'getKintD',
@@ -105,7 +107,9 @@ public function testConfigCheckWithKintEnabledUsesKintD(): void
105107

106108
public function testConfigCheckWithKintDisabledUsesVarDump(): void
107109
{
108-
/** @var Closure(object): string $command */
110+
/**
111+
* @var Closure(mixed...): string
112+
*/
109113
$command = $this->getPrivateMethodInvoker(
110114
new ConfigCheck(service('logger'), service('commands')),
111115
'getVarDump',

0 commit comments

Comments
 (0)