Skip to content

Commit

Permalink
Type hinted Table constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeblanco authored and morozov committed Aug 31, 2020
1 parent 1500819 commit 577f8a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Schema/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class Table extends AbstractAsset
private $implicitIndexes = [];

/**
* @param string $name
* @param Column[] $columns
* @param Index[] $indexes
* @param UniqueConstraint[] $uniqueConstraints
Expand All @@ -61,14 +60,14 @@ class Table extends AbstractAsset
* @throws SchemaException
*/
public function __construct(
$name,
string $name,
array $columns = [],
array $indexes = [],
array $uniqueConstraints = [],
array $fkConstraints = [],
array $options = []
) {
if (strlen($name) === 0) {
if ($name === '') {
throw InvalidTableName::new($name);
}

Expand Down

0 comments on commit 577f8a4

Please sign in to comment.