Skip to content

Commit

Permalink
Upgradaing dependecies
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 22, 2022
1 parent 5b811ba commit e04e6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/DoctrinePhoneExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function afterCompile(Code\ClassType $class)
{
parent::afterCompile($class);

$initialize = $class->methods['initialize'];
$initialize = $class->getMethod('initialize');
$initialize->addBody('if (!Doctrine\DBAL\Types\Type::hasType(\'' . Types\Phone::PHONE . '\')) { Doctrine\DBAL\Types\Type::addType(\'' . Types\Phone::PHONE . '\', \'' . Types\Phone::class . '\'); }');
}

Expand Down

0 comments on commit e04e6d8

Please sign in to comment.