for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Smoren\Validator\Checks;
use Smoren\Validator\Exceptions\CheckError;
use Smoren\Validator\Interfaces\UtilityCheckInterface;
/**
* @internal
*/
final class RetrospectiveCheck implements UtilityCheckInterface
{
* {@inheritDoc}
public function __invoke($value, array $previousErrors, bool $preventDuplicate = false): void
if (\count($previousErrors)) {
throw new CheckError('retrospective', $value, $previousErrors);
}