File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## [ Unreleased] -
4
+
5
+ * Stop instanciating an object to check its class name. (#290 )
6
+
3
7
## [ 5.2.0] - 2020-01-07
4
8
5
9
* Fix ALTER TABLE ... PRIMARY/UNIQUE KEY results in error (#267 )
29
33
* Fix for error message with multiple CALL statements (#223 )
30
34
* Recognize the question mark character as a parameter (#242 )
31
35
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
+
32
45
## [ 4.4.0] - 2019-11-12
33
46
34
47
* Fix for PHP deprecations messages about implode for php 7.4+ (#258 )
Original file line number Diff line number Diff line change @@ -401,12 +401,10 @@ public function parse(Parser $parser, TokensList $list)
401
401
$ this ->after ($ parser , $ list , $ token );
402
402
403
403
// #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 ;
410
408
}
411
409
}
412
410
You can’t perform that action at this time.
0 commit comments