Skip to content

Commit

Permalink
Merge pull request #11335 from vimeo/allow_roundingmode
Browse files Browse the repository at this point in the history
Allow RoundingMode as param to round
  • Loading branch information
danog authored Feb 25, 2025
2 parents 33022d1 + 38e543b commit 4258dc8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/stubs/gen_callmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
VERSIONS="7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4"

for f in $VERSIONS; do
docker build --build-arg VERSION=$f . -f bin/Dockerfile_$f -t psalm_test_$f &
docker build --build-arg VERSION=$f . -f bin/stubs/Dockerfile_$f -t psalm_test_$f &
if [ "$f" == "7.1" ] || [ "$f" == "7.3" ] || [ "$f" == "8.0" ] || [ "$f" == "8.2" ] || [ "$f" == "8.4" ]; then wait; fi
done

Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_84.php
Original file line number Diff line number Diff line change
Expand Up @@ -75355,7 +75355,7 @@
0 => 'float',
'num' => 'float|int',
'precision=' => 'int',
'mode=' => 'int<0, max>',
'mode=' => 'RoundingMode|int<0, max>',
),
'roundingmode::cases' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/override/CallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -55120,7 +55120,7 @@
0 => 'float',
'num' => 'float|int',
'precision=' => 'int',
'mode=' => 'int<0, max>',
'mode=' => 'RoundingMode|int<0, max>',
),
'rpm_close' =>
array (
Expand Down
17 changes: 17 additions & 0 deletions dictionaries/override/CallMap_84_delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,23 @@
'fallback=' => 'bool',
),
),
'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>',
),
),
'splfixedarray::setsize' =>
array (
'old' =>
Expand Down

0 comments on commit 4258dc8

Please sign in to comment.