From 6ee0ae7b67150a49142e1f8bed96668350c376dd Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 7 Oct 2025 09:57:59 +0200 Subject: [PATCH] replace SplObjectStorage::attach() with SplObjectStorage::offsetSet() --- src/Schema/Visitor/DropSchemaSqlCollector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Schema/Visitor/DropSchemaSqlCollector.php b/src/Schema/Visitor/DropSchemaSqlCollector.php index ddec6b4aed1..d746b2aee66 100644 --- a/src/Schema/Visitor/DropSchemaSqlCollector.php +++ b/src/Schema/Visitor/DropSchemaSqlCollector.php @@ -42,7 +42,7 @@ public function __construct(AbstractPlatform $platform) */ public function acceptTable(Table $table) { - $this->tables->attach($table); + $this->tables->offsetSet($table); } /** @@ -54,7 +54,7 @@ public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkCons throw SchemaException::namedForeignKeyRequired($localTable, $fkConstraint); } - $this->constraints->attach($fkConstraint, $localTable); + $this->constraints->offsetSet($fkConstraint, $localTable); } /** @@ -62,7 +62,7 @@ public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkCons */ public function acceptSequence(Sequence $sequence) { - $this->sequences->attach($sequence); + $this->sequences->offsetSet($sequence); } /** @return void */