Skip to content

Commit 9d41b84

Browse files
author
Paul M. Jones
committed
allow null for $content
1 parent 2ba5233 commit 9d41b84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php_request.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ struct prop_handlers {
139139
/* {{{ Argument Info */
140140
ZEND_BEGIN_ARG_INFO_EX(ServerRequest_construct_args, 0, 0, 1)
141141
ZEND_ARG_ARRAY_INFO(0, globals, 0)
142-
ZEND_ARG_TYPE_INFO(0, content, IS_STRING, 0)
142+
ZEND_ARG_TYPE_INFO(0, content, IS_STRING, 1)
143143
ZEND_END_ARG_INFO()
144144
/* }}} Argument Info */
145145

tests/request/___reflection.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Class [ <internal:request> class ServerRequest ] {
5353

5454
- Parameters [2] {
5555
Parameter #0 [ <required> array $globals ]
56-
Parameter #1 [ <optional> string $content ]
56+
Parameter #1 [ <optional> string or NULL $content ]
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)