Skip to content

Commit

Permalink
Merge Compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Mar 2, 2022
1 parent 2d4a44a commit 5e29a0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/DatabaseExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function getConfigSchema(): Schema
'types' => Expect::array(),
'typesMapping' => Expect::array(),
'wrapperClass' => Expect::string()->nullable(),
'serverVersion' => Expect::string()->nullable(),
])->castTo('array')->required(),
'configuration' => Expect::structure([
'sqlLogger' => Expect::string()->nullable(),
Expand Down
2 changes: 1 addition & 1 deletion src/Orm/DI/OrmExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function loadConfiguration(): void
public function loadDoctrineConfiguration(): void
{
$builder = $this->getContainerBuilder();
$config = $this->defaults['configuration'] + $this->config;
$config = array_replace($this->defaults['configuration'], $this->config);
$config = Helpers::expand($config, $builder->parameters);

$configurationClass = $config['configurationClass'] ?? Configuration::class;
Expand Down
2 changes: 1 addition & 1 deletion src/Orm/EntityManagerDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Repository\RepositoryFactory;

final class EntityManagerDecorator extends DoctrineEntityManagerDecorator
class EntityManagerDecorator extends DoctrineEntityManagerDecorator
{
private RepositoryFactory $repositoryFactory;

Expand Down

0 comments on commit 5e29a0a

Please sign in to comment.