Skip to content

Commit 6cefaa9

Browse files
committed
FormBuilder::create() @template @return
1 parent 0837e26 commit 6cefaa9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Kris/LaravelFormBuilder/FormBuilder.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ public function fireEvent($event)
5656
/**
5757
* Create a Form instance.
5858
*
59-
* @param string $formClass The name of the class that inherits \Kris\LaravelFormBuilder\Form.
60-
* @param array $options|null
61-
* @param array $data|null
62-
* @return Form
59+
* @template T
60+
* @param class-string<T> $formClass
61+
* @param array<string, mixed> $options
62+
* @param array<string, mixed> $data
63+
* @return T
6364
*/
6465
public function create($formClass, array $options = [], array $data = [])
6566
{

0 commit comments

Comments
 (0)