From 577f8a4d40f4b203cffa497806e912e6165cca51 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Mon, 4 May 2020 10:00:04 -0400 Subject: [PATCH] Type hinted Table constructor --- src/Schema/Table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Schema/Table.php b/src/Schema/Table.php index 79e322fcf34..09fa90b02c4 100644 --- a/src/Schema/Table.php +++ b/src/Schema/Table.php @@ -51,7 +51,6 @@ class Table extends AbstractAsset private $implicitIndexes = []; /** - * @param string $name * @param Column[] $columns * @param Index[] $indexes * @param UniqueConstraint[] $uniqueConstraints @@ -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); }