for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Hop\Validator\Validator;
class NotEmpty implements RuleValidator
{
use IsValidTrait;
public function getMessage($value, ?array $options)
if ((string)$value === '') {
return 'Value must not be empty';
}
return null;