Skip to content

Commit 302d3d7

Browse files
authored
Merge pull request #80 from SergeC/patch-1
Fix return type for isRequired to match Symfony Form return type
2 parents 493eb0c + 2375ba6 commit 302d3d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Limenius/Liform/Transformer/AbstractTransformer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(protected TranslatorInterface $translator, protected
2828
{
2929
}
3030

31-
public function isRequired(FormInterface $form): bool
31+
public function isRequired(FormInterface $form): ?bool
3232
{
3333
return $form->getConfig()->getOption('required');
3434
}

0 commit comments

Comments
 (0)