Skip to content

Commit e0fe9fb

Browse files
committed
Fix a few PHPStan level 1 errors
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent a82bd61 commit e0fe9fb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"symfony/polyfill-mbstring": "^1.3"
2121
},
2222
"require-dev": {
23-
"sami/sami": "^4.0",
23+
"phpmyadmin/coding-standard": "^1.0",
24+
"phpmyadmin/motranslator": "^4.0",
2425
"phpunit/php-code-coverage": "*",
2526
"phpunit/phpunit": "^7.4 || ^8",
26-
"phpmyadmin/coding-standard": "^1.0"
27+
"sami/sami": "^4.0"
2728
},
2829
"conflict": {
2930
"phpmyadmin/motranslator": "<3.0"
@@ -46,5 +47,8 @@
4647
"psr-4": {
4748
"PhpMyAdmin\\SqlParser\\Tests\\": "tests"
4849
}
50+
},
51+
"config":{
52+
"sort-packages": true
4953
}
5054
}

src/Statements/PurgeStatement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function parse(Parser $parser, TokensList $list)
7171
*/
7272
$state = 0;
7373

74+
$prevToken = null;
7475
for (; $list->idx < $list->count; ++$list->idx) {
7576
/**
7677
* Token parsed at this moment.

0 commit comments

Comments
 (0)