Skip to content

Commit

Permalink
CachedPlatform: nullable result is stored as array [closes nextras/or…
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Feb 2, 2019
1 parent bf9b5b9 commit 3021776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Platforms/CachedPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public function getForeignKeys(string $table): array
public function getPrimarySequenceName(string $table): ?string
{
return $this->cache->load('sequence.' . $table, function () use ($table) {
return $this->platform->getPrimarySequenceName($table);
});
return [$this->platform->getPrimarySequenceName($table)];
})[0];
}


Expand Down

0 comments on commit 3021776

Please sign in to comment.