10000 [Form] fixed FormConfigBuilder to use PropertyPathInterface · samswitz/symfony@596bbb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 596bbb1

Browse files
committed
[Form] fixed FormConfigBuilder to use PropertyPathInterface
1 parent a523823 commit 596bbb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Symfony/Component/Form/FormConfigBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Form\Exception\FormException;
1515
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1616
use Symfony\Component\Form\Util\PropertyPath;
17+
use Symfony\Component\Form\Util\PropertyPathInterface;
1718
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1819
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1920
use Symfony\Component\EventDispatcher\ImmutableEventDispatcher;
@@ -41,7 +42,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
4142
private $name;
4243

4344
/**
44-
* @var PropertyPath
45+
* @var PropertyPathInterface
4546
*/
4647
private $propertyPath;
4748

@@ -709,7 +710,7 @@ public function setPropertyPath($propertyPath)
709710
throw new FormException('The config builder cannot be modified anymore.');
710711
}
711712

712-
if (null !== $propertyPath && !$propertyPath instanceof PropertyPath) {
713+
if (null !== $propertyPath && !$propertyPath instanceof PropertyPathInterface) {
713714
$propertyPath = new PropertyPath($propertyPath);
714715
}
715716

0 commit comments

Comments
 (0)
0