Skip to content

Commit 9ac1233

Browse files
author
何平
committed
🎨 Fix
1 parent 27a4f79 commit 9ac1233

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

cloud-admin/Validation/Request/FormRequest.php

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public function rules(): array
3030
return [];
3131
}
3232

33+
/**
34+
* @return array
35+
* @phpstan-return array<array-key, mixed>
36+
*/
3337
public function getRules(): array
3438
{
3539
$scene = $this->getScene();

cloud-admin/Vo/Collection.php

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515

1616
final class Collection extends HyperfCollection
1717
{
18+
/**
19+
* @param array $data
20+
* @param string $idKey
21+
* @param string $parentKey
22+
* @param string $nestKey
23+
* @return array
24+
* @phpstan-return array<array-key, mixed>
25+
*/
1826
public static function tree(array $data, string $idKey, string $parentKey, string $nestKey = 'children'): array
1927
{
2028
$trees = $refs = [];

0 commit comments

Comments
 (0)