Closed
Description
Calling validateProperty
on a property which has no constraint defined will result in a notice, when using the 2.5
or 2.5-bc
validation API version.
Example :
class Foo
{
private $bar;
public function getBar()
{
return $this->bar;
}
}
$validator->validateProperty($foo, 'bar'); // Undefined index: bar
You can clone my fork and run phpunit to reproduce it : https://github.com/EmmanuelVella/symfony-standard/commit/73565d4a72270be78117ee7c4b71a11865d637c7