Skip to content

Commit

Permalink
Remove irrelevant @throws annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Oct 19, 2022
1 parent 88cfa33 commit deb739f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions src/Platforms/AbstractPlatform.php
Expand Up @@ -1560,8 +1560,6 @@ public function getColumnDeclarationListSQL(array $columns): string
* a string that defines the complete column
*
* @return string DBMS specific SQL code portion that should be used to declare the column.
*
* @throws Exception
*/
public function getColumnDeclarationSQL(string $name, array $column): string
{
Expand Down Expand Up @@ -2401,8 +2399,6 @@ protected function getLikeWildcardCharacters(): string

/**
* Compares the definitions of the given columns in the context of this platform.
*
* @throws Exception
*/
public function columnsEqual(Column $column1, Column $column2): bool
{
Expand Down
9 changes: 0 additions & 9 deletions src/Schema/Comparator.php
Expand Up @@ -4,7 +4,6 @@

namespace Doctrine\DBAL\Schema;

use Doctrine\DBAL\Exception;
use Doctrine\DBAL\Platforms\AbstractPlatform;

use function array_map;
Expand All @@ -24,8 +23,6 @@ public function __construct(private readonly AbstractPlatform $platform)

/**
* Returns the differences between the schemas.
*
* @throws Exception
*/
public function compareSchemas(Schema $oldSchema, Schema $newSchema): SchemaDiff
{
Expand Down Expand Up @@ -143,8 +140,6 @@ public function diffSequence(Sequence $sequence1, Sequence $sequence2): bool

/**
* Compares the tables and returns the difference between them.
*
* @throws Exception
*/
public function compareTables(Table $oldTable, Table $newTable): TableDiff
{
Expand Down Expand Up @@ -280,8 +275,6 @@ public function compareTables(Table $oldTable, Table $newTable): TableDiff
* @param array<string,Column> $removedColumns
*
* @return array<string,Column>
*
* @throws Exception
*/
private function detectRenamedColumns(array &$addedColumns, array &$removedColumns): array
{
Expand Down Expand Up @@ -405,8 +398,6 @@ protected function diffForeignKey(ForeignKeyConstraint $key1, ForeignKeyConstrai

/**
* Compares the definitions of the given columns
*
* @throws Exception
*/
protected function columnsEqual(Column $column1, Column $column2): bool
{
Expand Down

0 comments on commit deb739f

Please sign in to comment.