Skip to content

Commit e603c28

Browse files
committed
Removed extra space in data types.
Added comment about encoding.
1 parent 0966688 commit e603c28

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Components/DataType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static function build($component)
159159
$tmp = '(' . implode(', ', $component->parameters) . ')';
160160
}
161161
return trim(
162-
$component->name . ' ' . $tmp . ' '
162+
$component->name . $tmp . ' '
163163
. OptionsArray::build($component->options)
164164
);
165165
}

src/Lexer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ function __($str)
3434

3535
if (!defined('USE_UTF_STRINGS')) {
3636

37+
// NOTE: In previous versions of PHP (5.5 and older) the default
38+
// internal encoding is "ISO-8859-1".
39+
// All `mb_` functions must specify the correct encoding, which is
40+
// 'UTF-8' in order to work properly.
41+
3742
/**
3843
* Forces usage of `UtfString` if the string is multibyte.
3944
* `UtfString` may be slower, but it gives better results.

tests/Builder/CreateStatementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testBuilderTable()
5858

5959
$this->assertEquals(
6060
"CREATE TABLE `test` (\n" .
61-
"`id` INT (11) UNSIGNED NOT NULL AUTO_INCREMENT,\n" .
61+
"`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n" .
6262
"PRIMARY KEY (`id`)\n" .
6363
") ",
6464
$stmt->build()

0 commit comments

Comments
 (0)