Skip to content

Commit

Permalink
Fix PHP 8 deprecation notice (#331)
Browse files Browse the repository at this point in the history
When using the project with PHP 8, you get the following notice: ```
PHP Deprecated:  Required parameter $options follows optional parameter $qchars in vendor\greenlion\php-sql-parser\src\PHPSQLParser\utils\ExpressionToken.php on line 59
```
  • Loading branch information
harm-smits committed Mar 28, 2021
1 parent d534d36 commit e38d6f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPSQLParser/utils/ExpressionToken.php
Expand Up @@ -56,7 +56,7 @@ public function getToken($idx = false) {
return $idx !== false ? $this->token[$idx] : $this->token;
}

public function setNoQuotes($token, $qchars = null, Options $options) {
public function setNoQuotes($token, $qchars, Options $options) {
$this->noQuotes = ($token === null) ? null : $this->revokeQuotation($token, $options);
}

Expand Down

0 comments on commit e38d6f0

Please sign in to comment.