diff --git a/src/Psalm/Internal/Analyzer/FunctionAnalyzer.php b/src/Psalm/Internal/Analyzer/FunctionAnalyzer.php index 309f1e23c..40216375c 100644 --- a/src/Psalm/Internal/Analyzer/FunctionAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/FunctionAnalyzer.php @@ -226,27 +226,6 @@ class FunctionAnalyzer extends FunctionLikeAnalyzer break; - case 'round': - if (isset($call_args[1])) { - $second_arg = $call_args[1]->value; - - if (($second_arg_type = $statements_analyzer->node_data->getType($second_arg)) - && $second_arg_type->isSingleIntLiteral() - ) { - switch ($second_arg_type->getSingleIntLiteral()->value) { - case 0: - return Type::getInt(true); - default: - return Type::getFloat(); - } - } - - return new Type\Union([new Type\Atomic\TInt, new Type\Atomic\TFloat]); - } - - return Type::getInt(true); - - case 'get_parent_class': // this is unreliable, as it's hard to know exactly what's wanted - attempted this in // https://github.com/vimeo/psalm/commit/355ed831e1c69c96bbf9bf2654ef64786cbe9fd7 diff --git a/tests/FunctionCallTest.php b/tests/FunctionCallTest.php index ea15bdbd3..32e84a78e 100644 --- a/tests/FunctionCallTest.php +++ b/tests/FunctionCallTest.php @@ -844,24 +844,6 @@ class FunctionCallTest extends TestCase foo(); }', ], - 'round' => [ - ' [ - '$a' => 'int', - '$b' => 'int', - '$c' => 'float', - '$d' => 'float', - '$e' => 'float|int', - ], - ], 'hashInit70' => [ '