8000 Update src/Symfony/Bridge/Doctrine/SchemaListener/DoctrineDbalCacheAd… · symfony/symfony@55d257f · GitHub
[go: up one dir, main page]

Skip to content

Commit 55d257f

Browse files
GromNaNderrabus
andauthored
Update src/Symfony/Bridge/Doctrine/SchemaListener/DoctrineDbalCacheAdapterSchemaSubscriber.php
Co-authored-by: Alexander M. Turek <me@derrabus.de>
1 parent 802f709 commit 55d257f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/SchemaListener/DoctrineDbalCacheAdapterSchemaSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function postGenerateSchema(GenerateSchemaEventArgs $event): void
4040
$dbalConnection = $event->getEntityManager()->getConnection();
4141
foreach ($this->dbalAdapters as $dbalAdapter) {
4242
if (!$dbalAdapter instanceof DoctrineSchemaConfiguratorInterface) {
43-
throw new \InvalidArgumentException(sprintf('"%s" only works with "%s". Got "%s"', __CLASS__, DoctrineDbalAdapter::class, is_object($dbalAdapter) ? get_class($dbalAdapter) : gettype($dbalAdapter)));
43+
throw new \InvalidArgumentException(sprintf('"%s" only works with "%s". Got "%s"', __CLASS__, DoctrineDbalAdapter::class, get_debug_type($dbalAdapter)));
4444
}
4545
$dbalAdapter->configureSchema($event->getSchema(), $dbalConnection);
4646
}

0 commit comments

Comments
 (0)
0