Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.1 supporting #347

Closed
tarasTrujay opened this issue Jan 4, 2022 · 12 comments
Closed

PHP 8.1 supporting #347

tarasTrujay opened this issue Jan 4, 2022 · 12 comments

Comments

@tarasTrujay
Copy link

Hi guys!
Have some deprecations on PHP 8.1:

Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /development/application/vendor/greenlion/php-sql-parser/src/PHPSQLParser/lexer/PHPSQLLexer.php on line 87

Deprecated: Automatic conversion of false to array is deprecated in /development/application/vendor/greenlion/php-sql-parser/src/PHPSQLParser/processors/SQLProcessor.php on line 506

and so on.

Could you fix these?

@genyslt
Copy link

genyslt commented Jan 28, 2022

Any news?

@garethellis36
Copy link
Contributor

PR #346 was opened to address the first deprecation, but it hasn't been merged yet. @greenlion Any idea when this might get merged please?

@greenlion
Copy link
Owner

greenlion commented Jan 28, 2022 via email

@garethellis36
Copy link
Contributor

Thank you. Would you like a PR for the second deprecation?

@greenlion
Copy link
Owner

greenlion commented Jan 28, 2022 via email

@garethellis36
Copy link
Contributor

It doesn't look like it's possible to run the test suite on PHP 8.1 because the PHPUnit version is ~4 in composer.json

@greenlion
Copy link
Owner

greenlion commented Jan 28, 2022 via email

@nicoder
Copy link
Contributor

nicoder commented Jan 29, 2022

hi @greenlion

I had a go at upgrading phpunit and making the test suite pass on php 8.1 without deprecations:
#350

greenlion pushed a commit that referenced this issue Feb 1, 2022
Co-authored-by: Gareth Ellis <gareth.ellis@iconplc.com>
@greenlion
Copy link
Owner

Thank you everybody for your help. All three fixes are merged today.

@garethellis36
Copy link
Contributor

Thanks! Do you have any plans for when you might tag this as a release?

@greenlion
Copy link
Owner

greenlion commented Feb 1, 2022 via email

@greenlion
Copy link
Owner

greenlion commented Feb 1, 2022 via email

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

No branches or pull requests

5 participants