Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94b5dbd

Browse files
committed
Add missing autoload calls
Until either php 7.4 or doctrine/persistence 2 is required, these willbe needed to make sure php recognises signatures using the old names ascompatible with signatures using the new names.This is necessary for types defined outside Symfony that extend typesfrom Symfony and still use the old names in signatures of methods theyoverride.More details athttps://dev.to/greg0ire/how-to-deprecate-a-type-in-php-48cfFixesdoctrine/DoctrineMongoDBBundle#616
1 parent7a6e3c0 commit94b5dbd

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

‎src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,5 @@ public function reset()
282282
$this->choiceLoaders = [];
283283
}
284284
}
285+
286+
interface_exists(ObjectManager::class);

‎src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,5 @@ private function parameterToArray(Parameter $parameter): array
9797
return [$parameter->getName(),$parameter->getType(),$parameter->getValue()];
9898
}
9999
}
100+
101+
interface_exists(ObjectManager::class);

‎src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,6 @@ private function getClassMetadata(): ClassMetadata
153153
return$this->getObjectManager()->getClassMetadata($this->classOrAlias);
154154
}
155155
}
156+
157+
interface_exists(ObjectManager::class);
158+
interface_exists(ObjectRepository::class);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp