]> granicus.if.org Git - php/commitdiff
[ci skip] Add missing return types to protos
authorGabriel Caruso <carusogabriel34@gmail.com>
Fri, 23 Feb 2018 23:55:56 +0000 (20:55 -0300)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 24 Feb 2018 10:45:17 +0000 (11:45 +0100)
Zend/zend_closures.c
Zend/zend_exceptions.c
ext/date/php_date.c
ext/filter/filter.c
ext/simplexml/simplexml.c
ext/soap/soap.c
ext/spl/spl_directory.c
ext/spl/spl_iterators.c

index e3da91d8c1438bb9bada244472313aad15ea3d32..d1aa710ba6dec49a76a510735952398baa6101af 100644 (file)
@@ -563,7 +563,7 @@ static HashTable *zend_closure_get_gc(zval *obj, zval **table, int *n) /* {{{ */
 }
 /* }}} */
 
-/* {{{ proto Closure::__construct()
+/* {{{ proto void Closure::__construct()
    Private constructor preventing instantiation */
 ZEND_COLD ZEND_METHOD(Closure, __construct)
 {
index 64a2a8e8f6506c1dcfa2173c0f81549fe2fe6a8d..927edbfa5482e44064419969d4a63bbab6f1a466 100644 (file)
@@ -303,7 +303,7 @@ ZEND_METHOD(exception, __construct)
 }
 /* }}} */
 
-/* {{{ proto Exception::__wakeup()
+/* {{{ proto void Exception::__wakeup()
    Exception unserialize checks */
 #define CHECK_EXC_TYPE(id, type) \
        pvalue = zend_read_property_ex(i_get_exception_base(object), (object), ZSTR_KNOWN(id), 1, &value); \
@@ -330,7 +330,7 @@ ZEND_METHOD(exception, __wakeup)
 }
 /* }}} */
 
-/* {{{ proto ErrorException::__construct(string message, int code, int severity [, string filename [, int lineno [, Throwable previous]]])
+/* {{{ proto void ErrorException::__construct(string message, int code, int severity [, string filename [, int lineno [, Throwable previous]]])
    ErrorException constructor */
 ZEND_METHOD(error_exception, __construct)
 {
index 07c6371317af9b0cf5fd3f11413177446352607e..a266994b31e363962cbae48fdd271b24b6a3f0dc 100644 (file)
@@ -2826,7 +2826,7 @@ PHP_FUNCTION(date_create_immutable_from_format)
 }
 /* }}} */
 
-/* {{{ proto DateTime::__construct([string time[, DateTimeZone object]])
+/* {{{ proto void DateTime::__construct([string time[, DateTimeZone object]])
    Creates new DateTime object
 */
 PHP_METHOD(DateTime, __construct)
@@ -2848,7 +2848,7 @@ PHP_METHOD(DateTime, __construct)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::__construct([string time[, DateTimeZone object]])
+/* {{{ proto void DateTimeImmutable::__construct([string time[, DateTimeZone object]])
    Creates new DateTimeImmutable object
 */
 PHP_METHOD(DateTimeImmutable, __construct)
@@ -2870,7 +2870,7 @@ PHP_METHOD(DateTimeImmutable, __construct)
 }
 /* }}} */
 
-/* {{{ proto DateTime::createFromImmutable(DateTimeImmutable object)
+/* {{{ proto DateTime DateTime::createFromImmutable(DateTimeImmutable object)
    Creates new DateTime object from an existing immutable DateTimeImmutable object.
 */
 PHP_METHOD(DateTime, createFromImmutable)
@@ -2891,7 +2891,7 @@ PHP_METHOD(DateTime, createFromImmutable)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::createFromMutable(DateTime object)
+/* {{{ proto DateTimeImmutable DateTimeImmutable::createFromMutable(DateTime object)
    Creates new DateTimeImmutable object from an existing mutable DateTime object.
 */
 PHP_METHOD(DateTimeImmutable, createFromMutable)
@@ -2961,7 +2961,7 @@ static int php_date_initialize_from_hash(php_date_obj **dateobj, HashTable *myht
        return 0;
 } /* }}} */
 
-/* {{{ proto DateTime::__set_state(array array)
+/* {{{ proto DateTime DateTime::__set_state(array array)
 */
 PHP_METHOD(DateTime, __set_state)
 {
@@ -2983,7 +2983,7 @@ PHP_METHOD(DateTime, __set_state)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::__set_state(array array)
+/* {{{ proto DateTimeImmutable DateTimeImmutable::__set_state(array array)
 */
 PHP_METHOD(DateTimeImmutable, __set_state)
 {
@@ -3005,7 +3005,7 @@ PHP_METHOD(DateTimeImmutable, __set_state)
 }
 /* }}} */
 
-/* {{{ proto DateTime::__wakeup()
+/* {{{ proto void DateTime::__wakeup()
 */
 PHP_METHOD(DateTime, __wakeup)
 {
@@ -3278,7 +3278,7 @@ PHP_FUNCTION(date_modify)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::modify()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::modify()
 */
 PHP_METHOD(DateTimeImmutable, modify)
 {
@@ -3333,7 +3333,7 @@ PHP_FUNCTION(date_add)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::add()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::add()
 */
 PHP_METHOD(DateTimeImmutable, add)
 {
@@ -3389,7 +3389,7 @@ PHP_FUNCTION(date_sub)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::sub()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::sub()
 */
 PHP_METHOD(DateTimeImmutable, sub)
 {
@@ -3492,7 +3492,7 @@ PHP_FUNCTION(date_timezone_set)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::setTimezone()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::setTimezone()
 */
 PHP_METHOD(DateTimeImmutable, setTimezone)
 {
@@ -3577,7 +3577,7 @@ PHP_FUNCTION(date_time_set)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::setTime()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::setTime()
 */
 PHP_METHOD(DateTimeImmutable, setTime)
 {
@@ -3626,7 +3626,7 @@ PHP_FUNCTION(date_date_set)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::setDate()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::setDate()
 */
 PHP_METHOD(DateTimeImmutable, setDate)
 {
@@ -3679,7 +3679,7 @@ PHP_FUNCTION(date_isodate_set)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::setISODate()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::setISODate()
 */
 PHP_METHOD(DateTimeImmutable, setISODate)
 {
@@ -3727,7 +3727,7 @@ PHP_FUNCTION(date_timestamp_set)
 }
 /* }}} */
 
-/* {{{ proto DateTimeImmutable::setTimestamp()
+/* {{{ proto DateTimeImmutable DateTimeImmutable::setTimestamp()
 */
 PHP_METHOD(DateTimeImmutable, setTimestamp)
 {
@@ -3846,7 +3846,7 @@ PHP_FUNCTION(timezone_open)
 }
 /* }}} */
 
-/* {{{ proto DateTimeZone::__construct(string timezone)
+/* {{{ proto void DateTimeZone::__construct(string timezone)
    Creates new DateTimeZone object.
 */
 PHP_METHOD(DateTimeZone, __construct)
@@ -3888,7 +3888,7 @@ static int php_date_timezone_initialize_from_hash(zval **return_value, php_timez
        return FAILURE;
 } /* }}} */
 
-/* {{{ proto DateTimeZone::__set_state(array array)
+/* {{{ proto DateTimeZone DateTimeZone::__set_state(array array)
  *  */
 PHP_METHOD(DateTimeZone, __set_state)
 {
@@ -3911,7 +3911,7 @@ PHP_METHOD(DateTimeZone, __set_state)
 }
 /* }}} */
 
-/* {{{ proto DateTimeZone::__wakeup()
+/* {{{ proto void DateTimeZone::__wakeup()
  *  */
 PHP_METHOD(DateTimeZone, __wakeup)
 {
@@ -4302,7 +4302,7 @@ static zval *date_interval_get_property_ptr_ptr(zval *object, zval *member, int
 }
 /* }}} */
 
-/* {{{ proto DateInterval::__construct([string interval_spec])
+/* {{{ proto void DateInterval::__construct([string interval_spec])
    Creates new DateInterval object.
 */
 PHP_METHOD(DateInterval, __construct)
@@ -4391,7 +4391,7 @@ static int php_date_interval_initialize_from_hash(zval **return_value, php_inter
        return 0;
 } /* }}} */
 
-/* {{{ proto DateInterval::__set_state(array array)
+/* {{{ proto DateInterval DateInterval::__set_state(array array)
 */
 PHP_METHOD(DateInterval, __set_state)
 {
@@ -4411,7 +4411,7 @@ PHP_METHOD(DateInterval, __set_state)
 }
 /* }}} */
 
-/* {{{ proto DateInterval::__wakeup()
+/* {{{ proto void DateInterval::__wakeup()
 */
 PHP_METHOD(DateInterval, __wakeup)
 {
@@ -4566,7 +4566,7 @@ static int date_period_initialize(timelib_time **st, timelib_time **et, timelib_
        return retval;
 } /* }}} */
 
-/* {{{ proto DatePeriod::__construct(DateTime $start, DateInterval $interval, int recurrences|DateTime $end)
+/* {{{ proto void DatePeriod::__construct(DateTime $start, DateInterval $interval, int recurrences|DateTime $end)
    Creates new DatePeriod object.
 */
 PHP_METHOD(DatePeriod, __construct)
@@ -4653,7 +4653,7 @@ PHP_METHOD(DatePeriod, __construct)
 }
 /* }}} */
 
-/* {{{ proto DatePeriod::getStartDate()
+/* {{{ proto DateTimeInterface DatePeriod::getStartDate()
    Get start date.
 */
 PHP_METHOD(DatePeriod, getStartDate)
@@ -4680,7 +4680,7 @@ PHP_METHOD(DatePeriod, getStartDate)
 }
 /* }}} */
 
-/* {{{ proto DatePeriod::getEndDate()
+/* {{{ proto DateTimeInterface DatePeriod::getEndDate()
    Get end date.
 */
 PHP_METHOD(DatePeriod, getEndDate)
@@ -4711,7 +4711,7 @@ PHP_METHOD(DatePeriod, getEndDate)
 }
 /* }}} */
 
-/* {{{ proto DatePeriod::getDateInterval()
+/* {{{ proto DateInterval DatePeriod::getDateInterval()
    Get date interval.
 */
 PHP_METHOD(DatePeriod, getDateInterval)
@@ -5243,7 +5243,7 @@ static int php_date_period_initialize_from_hash(php_period_obj *period_obj, Hash
        return 1;
 } /* }}} */
 
-/* {{{ proto DatePeriod::__set_state(array array)
+/* {{{ proto DatePeriod DatePeriod::__set_state(array array)
 */
 PHP_METHOD(DatePeriod, __set_state)
 {
@@ -5265,7 +5265,7 @@ PHP_METHOD(DatePeriod, __set_state)
 }
 /* }}} */
 
-/* {{{ proto DatePeriod::__wakeup()
+/* {{{ proto void DatePeriod::__wakeup()
 */
 PHP_METHOD(DatePeriod, __wakeup)
 {
index 8ed8427bc44f210448a982c9fef547195321f312..63e5424fe12fcb53d97b544760dfc78265f16592 100644 (file)
@@ -850,7 +850,7 @@ PHP_FUNCTION(filter_var_array)
 }
 /* }}} */
 
-/* {{{ proto filter_list()
+/* {{{ proto array filter_list()
  * Returns a list of all supported filters */
 PHP_FUNCTION(filter_list)
 {
@@ -867,7 +867,7 @@ PHP_FUNCTION(filter_list)
 }
 /* }}} */
 
-/* {{{ proto filter_id(string filtername)
+/* {{{ proto int filter_id(string filtername)
  * Returns the filter ID belonging to a named filter */
 PHP_FUNCTION(filter_id)
 {
index 7a5767871d196dd3112e8ecdfa9f5efd1abc5684..13f40cf57d91d59d799a6f1193e0e912624c8ca7 100644 (file)
@@ -2286,7 +2286,7 @@ PHP_FUNCTION(simplexml_load_string)
 }
 /* }}} */
 
-/* {{{ proto SimpleXMLElement::__construct(string data [, int options [, bool data_is_url [, string ns [, bool is_prefix]]]])
+/* {{{ proto void SimpleXMLElement::__construct(string data [, int options [, bool data_is_url [, string ns [, bool is_prefix]]]])
    SimpleXMLElement constructor */
 SXE_METHOD(__construct)
 {
index df5351d1d37feadd87df8795719cfecb0866b0ca..877f05eadcbbea24e7705e39f87ec73415065341 100644 (file)
@@ -1987,7 +1987,7 @@ fail:
 /* }}} */
 
 
-/* {{{ proto SoapServer::fault ( staring code, string string [, string actor [, mixed details [, string name]]] )
+/* {{{ proto void SoapServer::fault(staring code, string string [, string actor [, mixed details [, string name]]])
    Issue SoapFault indicating an error */
 PHP_METHOD(SoapServer, fault)
 {
index 5c144b0f98cb4998526a5fe0a0d408ee8ba29507..844c8e2096824e28a3218155f27ca0f44e774af8 100644 (file)
@@ -1411,7 +1411,7 @@ SPL_METHOD(SplFileInfo, getPathInfo)
 }
 /* }}} */
 
-/* {{{  proto SplFileInfo::_bad_state_ex(void) */
+/* {{{  proto void SplFileInfo::_bad_state_ex(void) */
 SPL_METHOD(SplFileInfo, _bad_state_ex)
 {
        zend_throw_exception_ex(spl_ce_LogicException, 0,
index fdb8c4b401f19fae4109a1cb2e4a18b1e0afcdf3..a1cb55bb95c8b83a3201c7a9051bdb47fb70c287 100644 (file)
@@ -2531,7 +2531,7 @@ static inline void spl_limit_it_seek(spl_dual_it_object *intern, zend_long pos)
        }
 }
 
-/* {{{ proto LimitIterator::__construct(Iterator it [, int offset, int count])
+/* {{{ proto void LimitIterator::__construct(Iterator it [, int offset, int count])
    Construct a LimitIterator from an Iterator with a given starting offset and optionally a maximum count */
 SPL_METHOD(LimitIterator, __construct)
 {