Fix examples in api/form_builder/dependencies.md
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 31 Oct 2022 09:19:31 +0000 (10:19 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 31 Oct 2022 09:19:31 +0000 (10:19 +0100)
Fixes #329

docs/php/api/form_builder/dependencies.md

index f496e39b8913858c1621c3209edd3072f21c2352..c3f3256d3e91b49c59cedd2402d9f57ab5da0e21 100644 (file)
@@ -85,7 +85,7 @@ If `$singleSelectionFormField` is an instance of `SingleSelectionFormField` that
 
 ```php
 $textFormField->addDependency(
-       NonEmptyFormFieldDependency::create('singleSelectionFormField')
+       ValueFormFieldDependency::create('singleSelectionFormField')
                ->field($singleSelectionFormField)
                ->values([1, 3])
 );
@@ -95,7 +95,7 @@ If, in contrast, `$singleSelectionFormField` has many available options and `7`
 
 ```php
 $textFormField->addDependency(
-       NonEmptyFormFieldDependency::create('singleSelectionFormField')
+       ValueFormFieldDependency::create('singleSelectionFormField')
                ->field($singleSelectionFormField)
                ->values([7])
                ->negate()