Skip to content

Commit

Permalink
Fixed tests. (#81)
Browse files Browse the repository at this point in the history
Update config new factory.
  • Loading branch information
terabytesoftw committed May 2, 2021
1 parent e905a56 commit 1d5fe1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/QueryBuilder.php
Expand Up @@ -35,7 +35,7 @@
final class QueryBuilder extends AbstractQueryBuilder
{
/**
* @var array mapping from abstract column types (keys) to physical column types (values).
* @var array<string, string> mapping from abstract column types (keys) to physical column types (values).
*/
protected array $typeMap = [
Schema::TYPE_PK => 'int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY',
Expand Down Expand Up @@ -625,6 +625,7 @@ public function getColumnType($type): string
* @throws Exception
*
* @return array
* @psalm-return array<string, string>
*/
private function defaultTimeTypeMap(): array
{
Expand Down
1 change: 0 additions & 1 deletion src/Schema.php
Expand Up @@ -587,7 +587,6 @@ protected function findConstraints(TableSchema $table): void
$table->foreignKeys([]);

/**
* @var string $name
* @var array{referenced_table_name: string, columns: array} $constraint
*/
foreach ($constraints as $name => $constraint) {
Expand Down
10 changes: 7 additions & 3 deletions tests/TestCase.php
Expand Up @@ -279,9 +279,13 @@ private function config(): array

return [
Aliases::class => [
'@root' => dirname(__DIR__, 1),
'@data' => '@root/tests/Data',
'@runtime' => '@data/runtime',
'__construct()' => [
[
'@root' => dirname(__DIR__, 1),
'@data' => '@root/tests/Data',
'@runtime' => '@data/runtime',
],
],
],

CacheInterface::class => [
Expand Down

0 comments on commit 1d5fe1e

Please sign in to comment.