Skip to content

Commit 5a1bba4

Browse files
committed
Fix examples in api/form_builder/dependencies.md
Fixes #329
1 parent e916e15 commit 5a1bba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/php/api/form_builder/dependencies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ If `$singleSelectionFormField` is an instance of `SingleSelectionFormField` that
8585

8686
```php
8787
$textFormField->addDependency(
88-
NonEmptyFormFieldDependency::create('singleSelectionFormField')
88+
ValueFormFieldDependency::create('singleSelectionFormField')
8989
->field($singleSelectionFormField)
9090
->values([1, 3])
9191
);
@@ -95,7 +95,7 @@ If, in contrast, `$singleSelectionFormField` has many available options and `7`
9595

9696
```php
9797
$textFormField->addDependency(
98-
NonEmptyFormFieldDependency::create('singleSelectionFormField')
98+
ValueFormFieldDependency::create('singleSelectionFormField')
9999
->field($singleSelectionFormField)
100100
->values([7])
101101
->negate()

0 commit comments

Comments
 (0)