@@ -138,10 +138,10 @@ public static function textarea(string $name = '', string $placeholder = ''): Te
138138 return $ textarea ;
139139 }
140140
141- public static function checkbox (string $ name = '' , string $ value = 'on ' ): FormCheckbox
141+ public static function checkbox (string $ name = '' , string $ value = 'on ' ): Checkbox
142142 {
143- /** @var FormCheckbox */
144- $ input = self ::create ('FormCheckbox ' );
143+ /** @var Checkbox */
144+ $ input = self ::create ('Checkbox ' );
145145 if ($ name ) {
146146 $ input ->name ($ name );
147147 }
@@ -170,10 +170,10 @@ public static function select(string $name = '', array $options = []): Select
170170 /**
171171 * @param array<string, string> $options
172172 */
173- public static function checkboxes (string $ name = '' , array $ options = []): FormCheckboxes
173+ public static function checkboxes (string $ name = '' , array $ options = []): Checkboxes
174174 {
175- /** @var FormCheckboxes */
176- $ checkboxes = self ::create ('FormCheckboxes ' );
175+ /** @var Checkboxes */
176+ $ checkboxes = self ::create ('Checkboxes ' );
177177 if ($ name ) {
178178 $ checkboxes ->name ($ name );
179179 }
@@ -207,17 +207,17 @@ public static function legend(): FormLegend
207207 return $ legend ;
208208 }
209209
210- public static function error (): FormError
210+ public static function error (): Error
211211 {
212- /** @var FormError */
213- $ error = self ::create ('FormError ' );
212+ /** @var Error */
213+ $ error = self ::create ('Error ' );
214214 return $ error ;
215215 }
216216
217- public static function fieldset (): FormFieldset
217+ public static function fieldset (): Fieldset
218218 {
219- /** @var FormFieldset */
220- $ fieldset = self ::create ('FormFieldset ' );
219+ /** @var Fieldset */
220+ $ fieldset = self ::create ('Fieldset ' );
221221 return $ fieldset ;
222222 }
223223}
0 commit comments