Skip to content

Commit f98c22f

Browse files
ext/standard: "double" is not deprecated for settype()
Remove incorrect inline comment that using "double" as the type is deprecated; this comment was added in 929ae94 when support for "float" was included, but the use of "double" was never actually deprecated. [skip ci]
1 parent 2ee5e6b commit f98c22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ PHP_FUNCTION(settype)
105105
convert_to_long(ptr);
106106
} else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_FLOAT))) {
107107
convert_to_double(ptr);
108-
} else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_DOUBLE))) { /* deprecated */
108+
} else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_DOUBLE))) {
109109
convert_to_double(ptr);
110110
} else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_STRING))) {
111111
convert_to_string(ptr);

0 commit comments

Comments
 (0)