Skip to content

Commit

Permalink
[Form] fixed FormConfigBuilder to use PropertyPathInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Aug 27, 2012
1 parent 5cc6b24 commit 970fd29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FormConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -41,7 +42,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
private $name;

/**
* @var PropertyPath
* @var PropertyPathInterface
*/
private $propertyPath;

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 970fd29

Please sign in to comment.