Permalink
Browse files

[Form] fixed FormConfigBuilder to use PropertyPathInterface

  • Loading branch information...
Tobion committed Aug 26, 2012
1 parent 5cc6b24 commit 970fd29762e5887de512130df54c7e4a50866a02
Showing with 3 additions and 2 deletions.
  1. +3 −2 FormConfigBuilder.php
View
@@ -14,6 +14,7 @@
use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Util\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPathInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\ImmutableEventDispatcher;
@@ -41,7 +42,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
private $name;
/**
- * @var PropertyPath
+ * @var PropertyPathInterface
*/
private $propertyPath;
@@ -709,7 +710,7 @@ public function setPropertyPath($propertyPath)
throw new FormException('The config builder cannot be modified anymore.');
}
- if (null !== $propertyPath && !$propertyPath instanceof PropertyPath) {
+ if (null !== $propertyPath && !$propertyPath instanceof PropertyPathInterface) {
$propertyPath = new PropertyPath($propertyPath);
}

0 comments on commit 970fd29

Please sign in to comment.