Skip to content

Commit e763a30

Browse files
authored
Merge pull request #7174 from xabbuh/php-8.5-spl-object-storage
Replace SplObjectStorage::attach() with SplObjectStorage::offsetSet()
2 parents 7ccc7d3 + 6ee0ae7 commit e763a30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Schema/Visitor/DropSchemaSqlCollector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(AbstractPlatform $platform)
4242
*/
4343
public function acceptTable(Table $table)
4444
{
45-
$this->tables->attach($table);
45+
$this->tables->offsetSet($table);
4646
}
4747

4848
/**
@@ -54,15 +54,15 @@ public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkCons
5454
throw SchemaException::namedForeignKeyRequired($localTable, $fkConstraint);
5555
}
5656

57-
$this->constraints->attach($fkConstraint, $localTable);
57+
$this->constraints->offsetSet($fkConstraint, $localTable);
5858
}
5959

6060
/**
6161
* {@inheritDoc}
6262
*/
6363
public function acceptSequence(Sequence $sequence)
6464
{
65-
$this->sequences->attach($sequence);
65+
$this->sequences->offsetSet($sequence);
6666
}
6767

6868
/** @return void */

0 commit comments

Comments
 (0)