rector/vendor/rector/rector-symfony/config/sets/symfony/symfony52-validator-attributes.php

13 lines
5.9 KiB
PHP
Raw Normal View History

<?php
declare (strict_types=1);
namespace RectorPrefix202404;
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
use Rector\Php80\ValueObject\AnnotationToAttribute;
// @see https://symfony.com/blog/new-in-symfony-5-2-constraints-as-php-attributes
return static function (RectorConfig $rectorConfig) : void {
2024-04-05 09:01:07 +00:00
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Bic'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Blank'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Callback'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\CardScheme'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Cascade'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Choice'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Count'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Country'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Currency'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Date'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\DateTime'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\DisableAutoMapping'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\DivisibleBy'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Email'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\EnableAutoMapping'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\EqualTo'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Expression'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\ExpressionLanguageSyntax'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\File'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\GreaterThan'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqual'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\GroupSequence'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\GroupSequenceProvider'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Hostname'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Iban'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\IdenticalTo'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Image'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Ip'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Isbn'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\IsFalse'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Isin'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\IsNull'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Issn'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\IsTrue'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Json'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Language'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Length'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\LessThan'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\LessThanOrEqual'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Locale'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Luhn'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Negative'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\NegativeOrZero'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\NotBlank'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\NotCompromisedPassword'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\NotEqualTo'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\NotIdenticalTo'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Not
};