mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
b8e380ab09
Updates the deprecation message for implicit incompatible float to int conversion from: ``` Implicit conversion from non-compatible float %.*H to int in %s on line %d ``` to ``` Implicit conversion from float %.*H to int loses precision in %s on line %d ``` Related: #6661
19 lines
332 B
PHP
19 lines
332 B
PHP
--TEST--
|
|
Bug #72347 (VERIFY_RETURN type casts visible in finally)
|
|
--FILE--
|
|
<?php
|
|
function test() : int {
|
|
$d = 1.5;
|
|
try {
|
|
return $d;
|
|
} finally {
|
|
var_dump($d);
|
|
}
|
|
}
|
|
var_dump(test());
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Implicit conversion from float 1.5 to int loses precision in %s on line %d
|
|
float(1.5)
|
|
int(1)
|