for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kuperwood\Eav\Validation\Constraints;
use Kuperwood\Eav\Interfaces\ConstraintInterface;
class NotNullConstraint implements ConstraintInterface
{
public function validate($value): ?string
if ($value === null) {
return "This value cannot be null.";
}
return null;