Skip to content

Commit

Permalink
[Form] removed a constraint in PropertyPath as the path can definitel…
Browse files Browse the repository at this point in the history
…y be an empty string for errors attached on the main form (when using a constraint defined with the 'validation_constraint' option)
  • Loading branch information
fabpot committed Jul 15, 2011
1 parent 22b4b5d commit ff524f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util/PropertyPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class PropertyPath implements \IteratorAggregate
*/
public function __construct($propertyPath)
{
if ('' === $propertyPath || null === $propertyPath) {
if (null === $propertyPath) {
throw new InvalidPropertyPathException('The property path must not be empty');
}

Expand Down

0 comments on commit ff524f7

Please sign in to comment.