Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@harm-smits
Copy link
Contributor

@harm-smits harm-smits commented Dec 24, 2020

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

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
```
@phpfui
Copy link

phpfui commented Feb 10, 2021

Just ran into this issue myself. Any idea of when this will be merged and released?

I actually fixed it locally by defaulting Options to null as well, and then allowing a null default on the private member function revokeQuotation. Looks like revokeQuotation is only called once, but will accept a null.

Not sure the best approach in the code.

@phpfui
Copy link

phpfui commented Mar 18, 2021

What is the status of this PR? PHP 8.0 has been out for a while and this PR looks like it solves the problem. Should probably be merged and tagged.

I looked into the PHPMyAdmin SQL parser, and this is the better parser, so it is worth maintaining.

@harm-smits
Copy link
Contributor Author

@greenlion Plis man 🌡

@greenlion
Copy link
Owner

greenlion commented Mar 18, 2021 via email

@harm-smits
Copy link
Contributor Author

@greenlion I assume you did not have any time? Could you kindly let me know when it can be merged? Otherwise I can do it myself as well if you give me according rights.

@greenlion
Copy link
Owner

greenlion commented Mar 28, 2021 via email

@greenlion greenlion merged commit e38d6f0 into greenlion:master Mar 28, 2021
@greenlion
Copy link
Owner

Tested locally. Will rollback if online regression tests fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants