1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

random: Fix error message formatting for Randomizer::getFloat() (#19008)

Error messages should not end with a `.`.
This commit is contained in:
Tim Düsterhus
2025-07-02 13:58:05 +02:00
committed by GitHub
parent ec8b016d08
commit 1a4dfd5658
2 changed files with 2 additions and 2 deletions

View File

@@ -196,7 +196,7 @@ PHP_METHOD(Random_Randomizer, getFloat)
RETVAL_DOUBLE(php_random_gammasection_open_open(randomizer->engine, min, max));
if (UNEXPECTED(isnan(Z_DVAL_P(return_value)))) {
zend_value_error("The given interval is empty, there are no floats between argument #1 ($min) and argument #2 ($max).");
zend_value_error("The given interval is empty, there are no floats between argument #1 ($min) and argument #2 ($max)");
RETURN_THROWS();
}

View File

@@ -127,4 +127,4 @@ Random\Randomizer::getFloat(): Argument #2 ($max) must be finite
Random\Randomizer::getFloat(): Argument #2 ($max) must be greater than argument #1 ($min)
Random\Randomizer::getFloat(): Argument #2 ($max) must be greater than argument #1 ($min)
Random\Randomizer::getFloat(): Argument #2 ($max) must be greater than argument #1 ($min)
The given interval is empty, there are no floats between argument #1 ($min) and argument #2 ($max).
The given interval is empty, there are no floats between argument #1 ($min) and argument #2 ($max)