Skip to content

Commit 2d4ccf0

Browse files
committed
[ComposerBased] Skip ORMSetup >=3.5 renames when the package declares a lower orm floor
1 parent 1d83468 commit 2d4ccf0

2 files changed

Lines changed: 17 additions & 39 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Rector\Doctrine\Tests\ComposerBased\Fixture;
4+
5+
use Doctrine\ORM\ORMSetup;
6+
7+
final class SkipOrmSetupRenamesBelowOrm35
8+
{
9+
public function run(array $paths)
10+
{
11+
$attributeConfig = ORMSetup::createAttributeMetadataConfiguration($paths);
12+
$xmlConfig = ORMSetup::createXMLMetadataConfiguration($paths);
13+
$config = ORMSetup::createConfiguration();
14+
15+
return [$attributeConfig, $xmlConfig, $config];
16+
}
17+
}

tests/ComposerBased/Fixture/version_bound_orm_setup_renames.php.inc

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)