iconv_strlen() cannot return a string

This commit is contained in:
Christoph M. Becker 2019-11-11 15:39:52 +01:00
parent 27e83d0fb8
commit dccd137e1a
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
<?php
function iconv_strlen(string $str, string $charset = UNKNOWN): string|int|false {}
function iconv_strlen(string $str, string $charset = UNKNOWN): int|false {}
function iconv_substr(string $str, int $offset, ?int $length = null, string $charset = UNKNOWN): string|false {}

View file

@ -1,6 +1,6 @@
/* This is a generated file, edit the .stub.php file instead. */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()