Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87e4a1 commit e65178dCopy full SHA for e65178d
src/Symfony/Bridge/Doctrine/SchemaListener/LockStoreSchemaListener.php
@@ -30,10 +30,8 @@ public function postGenerateSchema(GenerateSchemaEventArgs $event): void
30
{
31
$connection = $event->getEntityManager()->getConnection();
32
33
- $storesIterator = new \ArrayIterator($this->stores);
34
- while ($storesIterator->valid()) {
+ foreach ($this->stores as $store) {
35
try {
36
- $store = $storesIterator->current();
37
if (!$store instanceof DoctrineDbalStore) {
38
continue;
39
}
@@ -42,8 +40,6 @@ public function postGenerateSchema(GenerateSchemaEventArgs $event): void
42
40
} catch (InvalidArgumentException) {
43
41
// no-op
44
45
-
46
- $storesIterator->next();
47
48
49
0 commit comments