We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 Invalid default value
for example:
class Test{ public function t1(int i=0) { } }
var t; let t=new Test(); t->t1();
Since the call does not take a parameter, it usually passes a null value, so the default value of the parameter cannot be used.
The default value can only be used if the type is changed to var i=0.
The text was updated successfully, but these errors were encountered:
#2396 - Add test cases with default param value
02d088e
I added some tests and it works fine - 02d088e
Please provide example when it occur and what type of error happens. Closing for now, open if needed.
Sorry, something went wrong.
Merge pull request #2430 from zephir-lang/#2396-default
d02af51
Jeckerson
Successfully merging a pull request may close this issue.
PHP 8.1 Invalid default value
for example:
class Test{
public function t1(int i=0)
{
}
}
var t;
let t=new Test();
t->t1();
Since the call does not take a parameter, it usually passes a null value, so the default value of the parameter cannot be used.
The default value can only be used if the type is changed to var i=0.
The text was updated successfully, but these errors were encountered: