mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 10:50:48 +00:00
d1ec79d324
4a1880bd29
[CodeQuality] Add Equal and NotEqual support on SimplifyIfReturnBoolRector (#5697)
12 lines
638 B
PHP
12 lines
638 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202403;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
|
|
use Rector\Renaming\ValueObject\RenameClassAndConstFetch;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [new RenameClassAndConstFetch('Doctrine\\Common\\Collections\\Criteria', 'ASC', 'Doctrine\\Common\\Collections\\Order', 'Ascending'), new RenameClassAndConstFetch('Doctrine\\Common\\Collections\\Criteria', 'DESC', 'Doctrine\\Common\\Collections\\Order', 'Descending')]);
|
|
};
|