Skip to content

Commit f4d0d83

Browse files
committed
Merge branch 'QA'
Signed-off-by: William Desportes <[email protected]>
2 parents bddaf05 + c690e1d commit f4d0d83

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [Unreleased] -
4+
5+
* Stop instanciating an object to check its class name. (#290)
6+
37
## [5.2.0] - 2020-01-07
48

59
* Fix ALTER TABLE ... PRIMARY/UNIQUE KEY results in error (#267)
@@ -29,6 +33,15 @@
2933
* Fix for error message with multiple CALL statements (#223)
3034
* Recognize the question mark character as a parameter (#242)
3135

36+
## [4.5.0] - 2020-01-07
37+
38+
* Fix ALTER TABLE ... PRIMARY/UNIQUE KEY results in error (#267)
39+
* Prevent overwrite of offset in Limit clause by parenthesis (#275)
40+
* Allow SCHEMA to be used in CREATE Database statement (#231)
41+
* Add missing options in SET statement (#255)
42+
* Add support for DROP USER statement (#259)
43+
* Fix php error "undefined index" when replacing a non existing clause (#249)
44+
3245
## [4.4.0] - 2019-11-12
3346

3447
* Fix for PHP deprecations messages about implode for php 7.4+ (#258)

src/Statement.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,10 @@ public function parse(Parser $parser, TokensList $list)
401401
$this->after($parser, $list, $token);
402402

403403
// #223 Here may make a patch, if last is delimiter, back one
404-
if ($class !== null) {
405-
if ((new $class()) instanceof FunctionCall) {
406-
if ($list->offsetGet($list->idx)->type === Token::TYPE_DELIMITER) {
407-
--$list->idx;
408-
}
409-
}
404+
if ($class === FunctionCall::class
405+
&& $list->offsetGet($list->idx)->type === Token::TYPE_DELIMITER
406+
) {
407+
--$list->idx;
410408
}
411409
}
412410

0 commit comments

Comments
 (0)