diff --git a/standard/standard_3.php b/standard/standard_3.php index ea9dcc2b4..3c68fc772 100644 --- a/standard/standard_3.php +++ b/standard/standard_3.php @@ -131,7 +131,7 @@ function floor(int|float $num) {} * @return float The rounded value */ #[Pure] -function round(int|float $num, int $precision = 0, #[LanguageLevelTypeAware(['8.4' => 'RoundingMode|int'], default: 'int')] $mode = RoundingMode::HalfAwayFromZero): float {} +function round(int|float $num, int $precision = 0, #[LanguageLevelTypeAware(['8.4' => 'RoundingMode|int'], default: 'int')] $mode = 0): float {} /** * Sine diff --git a/tests/TestData/mutedProblems.json b/tests/TestData/mutedProblems.json index 889cd9cd5..335a69e92 100644 --- a/tests/TestData/mutedProblems.json +++ b/tests/TestData/mutedProblems.json @@ -574,6 +574,20 @@ } ], "functions": [ + { + "name": "round", + "parameters": [ + { + "name": "mode", + "problems": [ + { + "description": "wrong default value", + "versions": [8.4] + } + ] + } + ] + }, { "name": "each", "problems": [