-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Uncaught TypeError: str_repeat() expects parameter 2 to be integery, null given #272
Comments
Related to #272 Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
The commit 1a99634 fixes the uncaught TypeError, but I don't think it is a proper fix. This issue started to happen because we enabled the PHP strict mode. Before
sql-parser/src/Utils/Formatter.php Lines 441 to 449 in 1a99634
I think we should close this issue and open a new one related to the CASE statement issue. What do you think @ibennetch ? |
I tend to agree; it seems that your commit suppresses the actual error but we should still make a new issue to address the underlying shortcomings with CASE statements. Good research and conclusion. @MauricioFauth do you mind creating that issue? |
Thank you. No problem, I can open the issue. |
what about QA branch? |
This TypeError only affects |
Okay, because of the php version? |
No, because of |
Highlighting a query causes an error about str_repeat with current master.
This is the content of
case.sql
This works correctly with the QA branch, but git bisect doesn't help me. I've tested with both PHP 7.1.23 and PHP 7.4.0.
The text was updated successfully, but these errors were encountered: