for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BrenoRoosevelt\Validation\Rules;
use Attribute;
use BrenoRoosevelt\Validation\AbstractValidation;
#[Attribute(Attribute::TARGET_PROPERTY|Attribute::TARGET_METHOD)]
class IsNull extends AbstractValidation
{
protected function evaluate($input, array $context = []): bool
return $input === null;
}