Skip to content

Regenerate callmap, add \Roundable parameter possibility to round PHP8.4#11326

Closed
goossda wants to merge 1 commit intovimeo:6.xfrom
goossda:php84-roundable
Closed

Regenerate callmap, add \Roundable parameter possibility to round PHP8.4#11326
goossda wants to merge 1 commit intovimeo:6.xfrom
goossda:php84-roundable

Conversation

@goossda
Copy link

@goossda goossda commented Feb 20, 2025

This PR is for adding Roundable to the round- function as a possible parameter.

I also had to change the gen_callmap.sh to generate a new callmap.
After generation, more files did change, the changes to the round-function did pick up.

'removed' =>
array (
),
); No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should have added the new signature in here as well as in CallMap.php.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand, because the override delta has this signature?

    'round' =>
    array (
      'old' =>
      array (
        0 => 'float',
        'num' => 'float|int',
        'precision=' => 'int',
        'mode=' => 'int<0, max>',
      ),
      'new' =>
      array (
        0 => 'float',
        'num' => 'float|int',
        'precision=' => 'int',
        'mode=' => 'RoundingMode|int<0, max>',
      ),
    ),

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this seems correct

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think i need to commit something else right? :)
It should be all there, however Github doesn't really allow us to check it online.

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.

2 participants