-
Notifications
You must be signed in to change notification settings - Fork 21
PHP8 Support for decimal 1.x #53
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
Conversation
|
@rtheunissen Hi! Can you help me? |
|
Hi @zlodes, I am taking a look at this now. It feels like yesterday that this issue was opened. Thank you for this work. |
|
This is excellent. What is the reason for the php8-specific tests? |
|
@rtheunissen some PHP8 and 7.4 errors have the different string representation. And I don't know how to fit it into one test. |
|
@zlodes I'm stuck on these reflection tests. I'm assuming "allow null" is the ? part of nullable type like ?int, but in this case the parameter does not have a type, it is |
|
I am going to inspect using |
|
Looking at the $value parameter: PHP 7.4.9 PHP 8.0.9 <?php
function testA($value) {}
$a = new ReflectionFunction('testA');
foreach ($a->getParameters() as $param) {
var_dump($param->allowsNull());
}^ This shows bool(true) for all versions, so I this should be the reference behavior. Notice that we mark the parameters optional. In the |
|
It seems that 7.4 does not have the argument info capabilities to make this consistent. I'll create the variation of the test for php8 and if issues about nullable types come up we can evaluate them as bugs then. |
|
I am going to merge this and make some minor changes thereafter. That makes 1.x compatible with PHP 8 which is worth a minor release along with anything else that was merged in the meantime. |
|
@rtheunissen thank you! |
|
Hello! Sorry for pushing, but was curious to see if there is an ETA for the PHP8.0 support to be released. Thanks A LOT for your work! |
Related issue:
#43