Skip to content

Commit ceda7a4

Browse files
authored
[ORM-28] add missing sets list for ORM-28 (#364)
1 parent 26bf4e0 commit ceda7a4

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

config/sets/doctrine-orm-28.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Doctrine\Orm28\Rector\MethodCall\IterateToToIterableRector;
7+
8+
return static function (RectorConfig $rectorConfig): void {
9+
// @see https://github.com/doctrine/orm/blob/2.8.x/UPGRADE.md#deprecated-doctrineormabstractqueryiterator
10+
$rectorConfig->rule(IterateToToIterableRector::class);
11+
};

src/Set/DoctrineSetList.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ final class DoctrineSetList
5454
*/
5555
public const DOCTRINE_ORM_25 = __DIR__ . '/../../config/sets/doctrine-orm-25.php';
5656

57+
/**
58+
* @var string
59+
*/
60+
public const DOCTRINE_ORM_28 = __DIR__ . '/../../config/sets/doctrine-orm-28.php';
61+
5762
/**
5863
* @var string
5964
*/

0 commit comments

Comments
 (0)