Skip to content

Commit

Permalink
Merge branch '7.1' into 7.2
Browse files Browse the repository at this point in the history
* 7.1:
  [DoctrineBridge] Fix Connection::createSchemaManager() for Doctrine DBAL v2
  [HttpClient] Various cleanups after recent changes
  do not add child nodes to EmptyNode instances
  consider write property visibility to decide whether a property is writable
  add comment explaining why HttpClient tests are run separately
  silence warnings issued by Redis Sentinel on connection issues
  • Loading branch information
nicolas-grekas committed Nov 25, 2024
2 parents b0c050b + 893cc4f commit 09dbb7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SchemaListener/AbstractSchemaListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ abstract public function postGenerateSchema(GenerateSchemaEventArgs $event): voi
protected function getIsSameDatabaseChecker(Connection $connection): \Closure
{
return static function (\Closure $exec) use ($connection): bool {
$schemaManager = $connection->createSchemaManager();

$schemaManager = method_exists($connection, 'createSchemaManager') ? $connection->createSchemaManager() : $connection->getSchemaManager();
$checkTable = 'schema_subscriber_check_'.bin2hex(random_bytes(7));
$table = new Table($checkTable);
$table->addColumn('id', Types::INTEGER)
Expand Down

0 comments on commit 09dbb7c

Please sign in to comment.