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