Commit ea497408 authored by Benjamin Morel's avatar Benjamin Morel

Remove more useless annotations

parent 1e785ee8
......@@ -56,7 +56,6 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
*/
public function getServerVersion()
{
/** @var stdClass $serverInfo */
$serverInfo = db2_server_info($this->conn);
return $serverInfo->DBMS_VER;
......
......@@ -1550,8 +1550,6 @@ abstract class AbstractPlatform
$columns = [];
foreach ($table->getColumns() as $column) {
/** @var Column $column */
if ($this->_eventManager !== null && $this->_eventManager->hasListeners(Events::onSchemaCreateTableColumn)) {
$eventArgs = new SchemaCreateTableColumnEventArgs($column, $table, $this);
$this->_eventManager->dispatchEvent(Events::onSchemaCreateTableColumn, $eventArgs);
......
......@@ -508,7 +508,6 @@ class DrizzlePlatform extends AbstractPlatform
continue;
}
/** @var ColumnDiff $columnDiff */
$column = $columnDiff->column;
$columnArray = $column->toArray();
......
......@@ -580,7 +580,6 @@ SQL
continue;
}
/** @var ColumnDiff $columnDiff */
$column = $columnDiff->column;
$columnArray = $column->toArray();
......
......@@ -799,7 +799,6 @@ SQL
continue;
}
/** @var ColumnDiff $columnDiff */
$column = $columnDiff->column;
// Do not generate column alteration clause if type is binary and only fixed property has changed.
......
......@@ -116,7 +116,6 @@ class SQLAnywherePlatform extends AbstractPlatform
$tableSql = [];
$alterClauses = [];
/** @var Column $column */
foreach ($diff->addedColumns as $column) {
if ($this->onSchemaAlterTableAddColumn($column, $diff, $columnSql)) {
continue;
......@@ -137,7 +136,6 @@ class SQLAnywherePlatform extends AbstractPlatform
);
}
/** @var Column $column */
foreach ($diff->removedColumns as $column) {
if ($this->onSchemaAlterTableRemoveColumn($column, $diff, $columnSql)) {
continue;
......@@ -146,7 +144,6 @@ class SQLAnywherePlatform extends AbstractPlatform
$alterClauses[] = $this->getAlterTableRemoveColumnClause($column);
}
/** @var ColumnDiff $columnDiff */
foreach ($diff->changedColumns as $columnDiff) {
if ($this->onSchemaAlterTableChangeColumn($columnDiff, $diff, $columnSql)) {
continue;
......
......@@ -460,7 +460,6 @@ SQL
$columnSql = [];
$commentsSql = [];
/** @var Column $column */
foreach ($diff->addedColumns as $column) {
if ($this->onSchemaAlterTableAddColumn($column, $diff, $columnSql)) {
continue;
......@@ -494,7 +493,6 @@ SQL
$queryParts[] = 'DROP COLUMN ' . $column->getQuotedName($this);
}
/** @var ColumnDiff $columnDiff */
foreach ($diff->changedColumns as $columnDiff) {
if ($this->onSchemaAlterTableChangeColumn($columnDiff, $diff, $columnSql)) {
continue;
......
......@@ -115,7 +115,6 @@ class SingleDatabaseSynchronizer extends AbstractSchemaSynchronizer
$sm = $this->conn->getSchemaManager();
$visitor = new DropSchemaSqlCollector($this->platform);
/** @var Schema $schema */
$schema = $sm->createSchema();
$schema->visit($visitor);
......
......@@ -615,7 +615,6 @@ class Table extends AbstractAsset
{
$foreignKeyColumns = [];
foreach ($this->getForeignKeys() as $foreignKey) {
/** @var ForeignKeyConstraint $foreignKey */
$foreignKeyColumns = array_merge($foreignKeyColumns, $foreignKey->getColumns());
}
return $this->filterColumns($foreignKeyColumns);
......
......@@ -161,7 +161,6 @@ EOT
$output->write('Checking keyword violations for <comment>' . implode(', ', $keywordLists) . '</comment>...', true);
/** @var Schema $schema */
$schema = $conn->getSchemaManager()->createSchema();
$visitor = new ReservedKeywordsValidator($keywords);
$schema->visit($visitor);
......
......@@ -397,7 +397,6 @@ class PostgreSqlSchemaManagerTest extends SchemaManagerFunctionalTestCase
$table->addColumn('foo', $type)->setPlatformOption('jsonb', true);
$this->schemaManager->dropAndCreateTable($table);
/** @var Schema\Column[] $columns */
$columns = $this->schemaManager->listTableColumns('test_jsonb');
self::assertSame($type, $columns['foo']->getType()->getName());
......
......@@ -833,7 +833,6 @@ class ComparatorTest extends TestCase
$sequence = $schema->createSequence('baz');
$schemaNew = clone $schema;
/** @var Schema $schemaNew */
$schemaNew->getSequence('baz')->setAllocationSize(20);
$c = new Comparator();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment