Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 658 Bytes
* This file is part of the Symfony package.
* (c) Fabien Potencier <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class NotNullValidator extends ConstraintValidator
public function isValid($value, Constraint $constraint)
if (null === $value) {
return false;
return true;
Jump to Line
Something went wrong with that request. Please try again.