From e7539102cb62e36e95c1842af7918ebbf70f4951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kucha=C5=99?= Date: Wed, 22 Aug 2018 15:43:11 +0200 Subject: [PATCH] fix: setType should accept null as type (#309) --- src/Dibi/Result.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dibi/Result.php b/src/Dibi/Result.php index 3067460b..a170ac96 100644 --- a/src/Dibi/Result.php +++ b/src/Dibi/Result.php @@ -501,9 +501,9 @@ class Result implements IDataSource /** * Define column type. - * @param string $type use constant Type::* + * @param string|null $type use constant Type::* */ - final public function setType(string $column, string $type): self + final public function setType(string $column, ?string $type): self { $this->types[$column] = $type; return $this; @@ -513,7 +513,7 @@ class Result implements IDataSource /** * Returns column type. */ - final public function getType(string $column): string + final public function getType(string $column): ?string { return $this->types[$column] ?? null; }