Skip to content

Commit

Permalink
Update Types.php
Browse files Browse the repository at this point in the history
  • Loading branch information
accgit committed Nov 1, 2019
1 parent f9034ae commit 33596a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Generator/Generator/Types.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Types
TIME = '\DateInterval';


public static function detectType(string $type): ?string
public static function detectType(string $type): string
{
$pattern = [
'BYTEA|BLOB|BIN' => self::BINARY,
Expand All @@ -40,6 +40,6 @@ public static function detectType(string $type): ?string
$item = $val;
}
}
return $item ?? null;
return $item ?? self::TEXT;
}
}

0 comments on commit 33596a3

Please sign in to comment.