for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SolBianca\Validator\Rules;
use SolBianca\Validator\Interfaces\RuleInterface;
class ArrayRule implements RuleInterface
{
/**
* {@inheritdoc}
*/
public function run($value, array $input, array $args): bool
return is_array($value);
}
public function errorMessage(): string
return 'Field `{field}` must be an array.';
public function canSkip(): bool
return true;