made ExecutionContext more consistent
This commit is contained in:
parent
cc53fc25b5
commit
3d0c70e434
|
@ -172,9 +172,9 @@ class ExecutionContext implements ExecutionContextInterface
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getPropertyPath($subPath = null)
|
||||
public function getPropertyPath($subPath = '')
|
||||
{
|
||||
if (null !== $subPath && '' !== $this->propertyPath && '' !== $subPath && '[' !== $subPath[0]) {
|
||||
if ('' != $subPath && '' !== $this->propertyPath && '[' !== $subPath[0]) {
|
||||
return $this->propertyPath . '.' . $subPath;
|
||||
}
|
||||
|
||||
|
|
|
@ -300,5 +300,5 @@ interface ExecutionContextInterface
|
|||
* string if the validator is currently validating the
|
||||
* root value of the validation graph.
|
||||
*/
|
||||
public function getPropertyPath($subPath = null);
|
||||
public function getPropertyPath($subPath = '');
|
||||
}
|
||||
|
|
Reference in New Issue