summaryrefslogtreecommitdiff
path: root/ext/ctype
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-14 17:36:20 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-01 16:35:56 +0200
commitf7fbc6333ff9a91ffb2f636790657c927b4e3c55 (patch)
tree0c3ca3db071c9c0052fd43c633279fd0cd9d9127 /ext/ctype
parent1c56b40a5ce45f598d718cf34e8a265d44f1d9d4 (diff)
downloadphp-git-f7fbc6333ff9a91ffb2f636790657c927b4e3c55.tar.gz
Add more precise type info for stubs
Closes GH-6005
Diffstat (limited to 'ext/ctype')
-rw-r--r--ext/ctype/ctype.stub.php11
-rw-r--r--ext/ctype/ctype_arginfo.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/ext/ctype/ctype.stub.php b/ext/ctype/ctype.stub.php
index 5ae356cc4f..bcc722c12d 100644
--- a/ext/ctype/ctype.stub.php
+++ b/ext/ctype/ctype.stub.php
@@ -2,35 +2,24 @@
/** @generate-function-entries */
-/** @param string|int $text */
function ctype_alnum(mixed $text): bool {}
-/** @param string|int $text */
function ctype_alpha(mixed $text): bool {}
-/** @param string|int $text */
function ctype_cntrl(mixed $text): bool {}
-/** @param string|int $text */
function ctype_digit(mixed $text): bool {}
-/** @param string|int $text */
function ctype_lower(mixed $text): bool {}
-/** @param string|int $text */
function ctype_graph(mixed $text): bool {}
-/** @param string|int $text */
function ctype_print(mixed $text): bool {}
-/** @param string|int $text */
function ctype_punct(mixed $text): bool {}
-/** @param string|int $text */
function ctype_space(mixed $text): bool {}
-/** @param string|int $text */
function ctype_upper(mixed $text): bool {}
-/** @param string|int $text */
function ctype_xdigit(mixed $text): bool {}
diff --git a/ext/ctype/ctype_arginfo.h b/ext/ctype/ctype_arginfo.h
index 72e4d7b35c..10d8ae9bf1 100644
--- a/ext/ctype/ctype_arginfo.h
+++ b/ext/ctype/ctype_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 5263184b90f82d53c6da4388c79b76a8c17977e9 */
+ * Stub hash: aa287af25fe33a05d15d85b92b0edcfae00284a2 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ctype_alnum, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, text, IS_MIXED, 0)