Skip to content

Commit a2c7c46

Browse files
carusogabrielcmb69
authored andcommitted
[ci skip] Add missing return types to protos
1 parent 3da9fc8 commit a2c7c46

File tree

8 files changed

+36
-36
lines changed

8 files changed

+36
-36
lines changed

Zend/zend_closures.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ static HashTable *zend_closure_get_gc(zval *obj, zval **table, int *n) /* {{{ */
563563
}
564564
/* }}} */
565565

566-
/* {{{ proto Closure::__construct()
566+
/* {{{ proto void Closure::__construct()
567567
Private constructor preventing instantiation */
568568
ZEND_COLD ZEND_METHOD(Closure, __construct)
569569
{

Zend/zend_exceptions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ ZEND_METHOD(exception, __construct)
303303
}
304304
/* }}} */
305305

306-
/* {{{ proto Exception::__wakeup()
306+
/* {{{ proto void Exception::__wakeup()
307307
Exception unserialize checks */
308308
#define CHECK_EXC_TYPE(id, type) \
309309
pvalue = zend_read_property_ex(i_get_exception_base(object), (object), ZSTR_KNOWN(id), 1, &value); \
@@ -330,7 +330,7 @@ ZEND_METHOD(exception, __wakeup)
330330
}
331331
/* }}} */
332332

333-
/* {{{ proto ErrorException::__construct(string message, int code, int severity [, string filename [, int lineno [, Throwable previous]]])
333+
/* {{{ proto void ErrorException::__construct(string message, int code, int severity [, string filename [, int lineno [, Throwable previous]]])
334334
ErrorException constructor */
335335
ZEND_METHOD(error_exception, __construct)
336336
{

ext/date/php_date.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2826,7 +2826,7 @@ PHP_FUNCTION(date_create_immutable_from_format)
28262826
}
28272827
/* }}} */
28282828

2829-
/* {{{ proto DateTime::__construct([string time[, DateTimeZone object]])
2829+
/* {{{ proto void DateTime::__construct([string time[, DateTimeZone object]])
28302830
Creates new DateTime object
28312831
*/
28322832
PHP_METHOD(DateTime, __construct)
@@ -2848,7 +2848,7 @@ PHP_METHOD(DateTime, __construct)
28482848
}
28492849
/* }}} */
28502850

2851-
/* {{{ proto DateTimeImmutable::__construct([string time[, DateTimeZone object]])
2851+
/* {{{ proto void DateTimeImmutable::__construct([string time[, DateTimeZone object]])
28522852
Creates new DateTimeImmutable object
28532853
*/
28542854
PHP_METHOD(DateTimeImmutable, __construct)
@@ -2870,7 +2870,7 @@ PHP_METHOD(DateTimeImmutable, __construct)
28702870
}
28712871
/* }}} */
28722872

2873-
/* {{{ proto DateTime::createFromImmutable(DateTimeImmutable object)
2873+
/* {{{ proto DateTime DateTime::createFromImmutable(DateTimeImmutable object)
28742874
Creates new DateTime object from an existing immutable DateTimeImmutable object.
28752875
*/
28762876
PHP_METHOD(DateTime, createFromImmutable)
@@ -2891,7 +2891,7 @@ PHP_METHOD(DateTime, createFromImmutable)
28912891
}
28922892
/* }}} */
28932893

2894-
/* {{{ proto DateTimeImmutable::createFromMutable(DateTime object)
2894+
/* {{{ proto DateTimeImmutable DateTimeImmutable::createFromMutable(DateTime object)
28952895
Creates new DateTimeImmutable object from an existing mutable DateTime object.
28962896
*/
28972897
PHP_METHOD(DateTimeImmutable, createFromMutable)
@@ -2961,7 +2961,7 @@ static int php_date_initialize_from_hash(php_date_obj **dateobj, HashTable *myht
29612961
return 0;
29622962
} /* }}} */
29632963

2964-
/* {{{ proto DateTime::__set_state(array array)
2964+
/* {{{ proto DateTime DateTime::__set_state(array array)
29652965
*/
29662966
PHP_METHOD(DateTime, __set_state)
29672967
{
@@ -2983,7 +2983,7 @@ PHP_METHOD(DateTime, __set_state)
29832983
}
29842984
/* }}} */
29852985

2986-
/* {{{ proto DateTimeImmutable::__set_state(array array)
2986+
/* {{{ proto DateTimeImmutable DateTimeImmutable::__set_state(array array)
29872987
*/
29882988
PHP_METHOD(DateTimeImmutable, __set_state)
29892989
{
@@ -3005,7 +3005,7 @@ PHP_METHOD(DateTimeImmutable, __set_state)
30053005
}
30063006
/* }}} */
30073007

3008-
/* {{{ proto DateTime::__wakeup()
3008+
/* {{{ proto void DateTime::__wakeup()
30093009
*/
30103010
PHP_METHOD(DateTime, __wakeup)
30113011
{
@@ -3278,7 +3278,7 @@ PHP_FUNCTION(date_modify)
32783278
}
32793279
/* }}} */
32803280

3281-
/* {{{ proto DateTimeImmutable::modify()
3281+
/* {{{ proto DateTimeImmutable DateTimeImmutable::modify()
32823282
*/
32833283
PHP_METHOD(DateTimeImmutable, modify)
32843284
{
@@ -3333,7 +3333,7 @@ PHP_FUNCTION(date_add)
33333333
}
33343334
/* }}} */
33353335

3336-
/* {{{ proto DateTimeImmutable::add()
3336+
/* {{{ proto DateTimeImmutable DateTimeImmutable::add()
33373337
*/
33383338
PHP_METHOD(DateTimeImmutable, add)
33393339
{
@@ -3389,7 +3389,7 @@ PHP_FUNCTION(date_sub)
33893389
}
33903390
/* }}} */
33913391

3392-
/* {{{ proto DateTimeImmutable::sub()
3392+
/* {{{ proto DateTimeImmutable DateTimeImmutable::sub()
33933393
*/
33943394
PHP_METHOD(DateTimeImmutable, sub)
33953395
{
@@ -3492,7 +3492,7 @@ PHP_FUNCTION(date_timezone_set)
34923492
}
34933493
/* }}} */
34943494

3495-
/* {{{ proto DateTimeImmutable::setTimezone()
3495+
/* {{{ proto DateTimeImmutable DateTimeImmutable::setTimezone()
34963496
*/
34973497
PHP_METHOD(DateTimeImmutable, setTimezone)
34983498
{
@@ -3577,7 +3577,7 @@ PHP_FUNCTION(date_time_set)
35773577
}
35783578
/* }}} */
35793579

3580-
/* {{{ proto DateTimeImmutable::setTime()
3580+
/* {{{ proto DateTimeImmutable DateTimeImmutable::setTime()
35813581
*/
35823582
PHP_METHOD(DateTimeImmutable, setTime)
35833583
{
@@ -3626,7 +3626,7 @@ PHP_FUNCTION(date_date_set)
36263626
}
36273627
/* }}} */
36283628

3629-
/* {{{ proto DateTimeImmutable::setDate()
3629+
/* {{{ proto DateTimeImmutable DateTimeImmutable::setDate()
36303630
*/
36313631
PHP_METHOD(DateTimeImmutable, setDate)
36323632
{
@@ -3679,7 +3679,7 @@ PHP_FUNCTION(date_isodate_set)
36793679
}
36803680
/* }}} */
36813681

3682-
/* {{{ proto DateTimeImmutable::setISODate()
3682+
/* {{{ proto DateTimeImmutable DateTimeImmutable::setISODate()
36833683
*/
36843684
PHP_METHOD(DateTimeImmutable, setISODate)
36853685
{
@@ -3727,7 +3727,7 @@ PHP_FUNCTION(date_timestamp_set)
37273727
}
37283728
/* }}} */
37293729

3730-
/* {{{ proto DateTimeImmutable::setTimestamp()
3730+
/* {{{ proto DateTimeImmutable DateTimeImmutable::setTimestamp()
37313731
*/
37323732
PHP_METHOD(DateTimeImmutable, setTimestamp)
37333733
{
@@ -3846,7 +3846,7 @@ PHP_FUNCTION(timezone_open)
38463846
}
38473847
/* }}} */
38483848

3849-
/* {{{ proto DateTimeZone::__construct(string timezone)
3849+
/* {{{ proto void DateTimeZone::__construct(string timezone)
38503850
Creates new DateTimeZone object.
38513851
*/
38523852
PHP_METHOD(DateTimeZone, __construct)
@@ -3888,7 +3888,7 @@ static int php_date_timezone_initialize_from_hash(zval **return_value, php_timez
38883888
return FAILURE;
38893889
} /* }}} */
38903890

3891-
/* {{{ proto DateTimeZone::__set_state(array array)
3891+
/* {{{ proto DateTimeZone DateTimeZone::__set_state(array array)
38923892
* */
38933893
PHP_METHOD(DateTimeZone, __set_state)
38943894
{
@@ -3911,7 +3911,7 @@ PHP_METHOD(DateTimeZone, __set_state)
39113911
}
39123912
/* }}} */
39133913

3914-
/* {{{ proto DateTimeZone::__wakeup()
3914+
/* {{{ proto void DateTimeZone::__wakeup()
39153915
* */
39163916
PHP_METHOD(DateTimeZone, __wakeup)
39173917
{
@@ -4302,7 +4302,7 @@ static zval *date_interval_get_property_ptr_ptr(zval *object, zval *member, int
43024302
}
43034303
/* }}} */
43044304

4305-
/* {{{ proto DateInterval::__construct([string interval_spec])
4305+
/* {{{ proto void DateInterval::__construct([string interval_spec])
43064306
Creates new DateInterval object.
43074307
*/
43084308
PHP_METHOD(DateInterval, __construct)
@@ -4391,7 +4391,7 @@ static int php_date_interval_initialize_from_hash(zval **return_value, php_inter
43914391
return 0;
43924392
} /* }}} */
43934393

4394-
/* {{{ proto DateInterval::__set_state(array array)
4394+
/* {{{ proto DateInterval DateInterval::__set_state(array array)
43954395
*/
43964396
PHP_METHOD(DateInterval, __set_state)
43974397
{
@@ -4411,7 +4411,7 @@ PHP_METHOD(DateInterval, __set_state)
44114411
}
44124412
/* }}} */
44134413

4414-
/* {{{ proto DateInterval::__wakeup()
4414+
/* {{{ proto void DateInterval::__wakeup()
44154415
*/
44164416
PHP_METHOD(DateInterval, __wakeup)
44174417
{
@@ -4566,7 +4566,7 @@ static int date_period_initialize(timelib_time **st, timelib_time **et, timelib_
45664566
return retval;
45674567
} /* }}} */
45684568

4569-
/* {{{ proto DatePeriod::__construct(DateTime $start, DateInterval $interval, int recurrences|DateTime $end)
4569+
/* {{{ proto void DatePeriod::__construct(DateTime $start, DateInterval $interval, int recurrences|DateTime $end)
45704570
Creates new DatePeriod object.
45714571
*/
45724572
PHP_METHOD(DatePeriod, __construct)
@@ -4653,7 +4653,7 @@ PHP_METHOD(DatePeriod, __construct)
46534653
}
46544654
/* }}} */
46554655

4656-
/* {{{ proto DatePeriod::getStartDate()
4656+
/* {{{ proto DateTimeInterface DatePeriod::getStartDate()
46574657
Get start date.
46584658
*/
46594659
PHP_METHOD(DatePeriod, getStartDate)
@@ -4680,7 +4680,7 @@ PHP_METHOD(DatePeriod, getStartDate)
46804680
}
46814681
/* }}} */
46824682

4683-
/* {{{ proto DatePeriod::getEndDate()
4683+
/* {{{ proto DateTimeInterface DatePeriod::getEndDate()
46844684
Get end date.
46854685
*/
46864686
PHP_METHOD(DatePeriod, getEndDate)
@@ -4711,7 +4711,7 @@ PHP_METHOD(DatePeriod, getEndDate)
47114711
}
47124712
/* }}} */
47134713

4714-
/* {{{ proto DatePeriod::getDateInterval()
4714+
/* {{{ proto DateInterval DatePeriod::getDateInterval()
47154715
Get date interval.
47164716
*/
47174717
PHP_METHOD(DatePeriod, getDateInterval)
@@ -5243,7 +5243,7 @@ static int php_date_period_initialize_from_hash(php_period_obj *period_obj, Hash
52435243
return 1;
52445244
} /* }}} */
52455245

5246-
/* {{{ proto DatePeriod::__set_state(array array)
5246+
/* {{{ proto DatePeriod DatePeriod::__set_state(array array)
52475247
*/
52485248
PHP_METHOD(DatePeriod, __set_state)
52495249
{
@@ -5265,7 +5265,7 @@ PHP_METHOD(DatePeriod, __set_state)
52655265
}
52665266
/* }}} */
52675267

5268-
/* {{{ proto DatePeriod::__wakeup()
5268+
/* {{{ proto void DatePeriod::__wakeup()
52695269
*/
52705270
PHP_METHOD(DatePeriod, __wakeup)
52715271
{

ext/filter/filter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ PHP_FUNCTION(filter_var_array)
850850
}
851851
/* }}} */
852852

853-
/* {{{ proto filter_list()
853+
/* {{{ proto array filter_list()
854854
* Returns a list of all supported filters */
855855
PHP_FUNCTION(filter_list)
856856
{
@@ -867,7 +867,7 @@ PHP_FUNCTION(filter_list)
867867
}
868868
/* }}} */
869869

870-
/* {{{ proto filter_id(string filtername)
870+
/* {{{ proto int filter_id(string filtername)
871871
* Returns the filter ID belonging to a named filter */
872872
PHP_FUNCTION(filter_id)
873873
{

ext/simplexml/simplexml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2286,7 +2286,7 @@ PHP_FUNCTION(simplexml_load_string)
22862286
}
22872287
/* }}} */
22882288

2289-
/* {{{ proto SimpleXMLElement::__construct(string data [, int options [, bool data_is_url [, string ns [, bool is_prefix]]]])
2289+
/* {{{ proto void SimpleXMLElement::__construct(string data [, int options [, bool data_is_url [, string ns [, bool is_prefix]]]])
22902290
SimpleXMLElement constructor */
22912291
SXE_METHOD(__construct)
22922292
{

ext/soap/soap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ PHP_METHOD(SoapServer, handle)
19871987
/* }}} */
19881988

19891989

1990-
/* {{{ proto SoapServer::fault ( staring code, string string [, string actor [, mixed details [, string name]]] )
1990+
/* {{{ proto void SoapServer::fault(staring code, string string [, string actor [, mixed details [, string name]]])
19911991
Issue SoapFault indicating an error */
19921992
PHP_METHOD(SoapServer, fault)
19931993
{

ext/spl/spl_directory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ SPL_METHOD(SplFileInfo, getPathInfo)
14111411
}
14121412
/* }}} */
14131413

1414-
/* {{{ proto SplFileInfo::_bad_state_ex(void) */
1414+
/* {{{ proto void SplFileInfo::_bad_state_ex(void) */
14151415
SPL_METHOD(SplFileInfo, _bad_state_ex)
14161416
{
14171417
zend_throw_exception_ex(spl_ce_LogicException, 0,

ext/spl/spl_iterators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ static inline void spl_limit_it_seek(spl_dual_it_object *intern, zend_long pos)
25312531
}
25322532
}
25332533

2534-
/* {{{ proto LimitIterator::__construct(Iterator it [, int offset, int count])
2534+
/* {{{ proto void LimitIterator::__construct(Iterator it [, int offset, int count])
25352535
Construct a LimitIterator from an Iterator with a given starting offset and optionally a maximum count */
25362536
SPL_METHOD(LimitIterator, __construct)
25372537
{

0 commit comments

Comments
 (0)