Skip to content

Commit

Permalink
[ORM-300] add missing rename class (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohJohan authored Jan 15, 2025
1 parent f740789 commit 26bf4e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/sets/doctrine-orm-300.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\Name\RenameClassRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
'Doctrine\ORM\ORMException' => 'Doctrine\ORM\Exception\ORMException',
]);
};
5 changes: 5 additions & 0 deletions src/Set/DoctrineSetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ final class DoctrineSetList
*/
public const DOCTRINE_ORM_214 = __DIR__ . '/../../config/sets/doctrine-orm-214.php';

/**
* @var string
*/
public const DOCTRINE_ORM_300 = __DIR__ . '/../../config/sets/doctrine-orm-300.php';

/**
* @var string
*/
Expand Down

0 comments on commit 26bf4e0

Please sign in to comment.