Skip to content

Commit 6d84e16

Browse files
committed
Update stubs
1 parent d9dd6bf commit 6d84e16

File tree

213 files changed

+127
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+127
-226
lines changed

Diff for: stubs/Zend/debug_backtrace.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, array>
54
* @refcount 1
65
*/
76
function debug_backtrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0) : array

Diff for: stubs/Zend/func_get_args.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
/** @return array<int, mixed> */
3+
/**
4+
*
5+
*/
46
function func_get_args() : array
57
{
68
}

Diff for: stubs/Zend/gc_status.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, int>
54
* @refcount 1
65
*/
76
function gc_status() : array

Diff for: stubs/Zend/get_class_methods.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function get_class_methods(object|string $object_or_class) : array

Diff for: stubs/Zend/get_class_vars.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, mixed|ref>
54
* @refcount 1
65
*/
76
function get_class_vars(string $class) : array

Diff for: stubs/Zend/get_declared_classes.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function get_declared_classes() : array

Diff for: stubs/Zend/get_declared_interfaces.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function get_declared_interfaces() : array

Diff for: stubs/Zend/get_declared_traits.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
6-
*/
5+
*/
76
function get_declared_traits() : array
87
{
98
}

Diff for: stubs/Zend/get_defined_constants.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, mixed>
54
* @refcount 1
65
*/
76
function get_defined_constants(bool $categorize = false) : array

Diff for: stubs/Zend/get_defined_functions.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, array>
54
* @refcount 1
65
*/
76
function get_defined_functions(bool $exclude_disabled = true) : array

Diff for: stubs/Zend/get_defined_vars.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, mixed|ref>
54
* @refcount 1
65
*/
76
function get_defined_vars() : array

Diff for: stubs/Zend/get_extension_funcs.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>|false
54
* @refcount 1
65
*/
76
function get_extension_funcs(string $extension) : array|false

Diff for: stubs/Zend/get_included_files.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function get_included_files() : array

Diff for: stubs/Zend/get_loaded_extensions.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function get_loaded_extensions(bool $zend_extensions = false) : array

Diff for: stubs/Zend/get_required_files.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @alias get_included_files
65
*/
76
function get_required_files() : array

Diff for: stubs/Zend/restore_error_handler.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
/** @return true */
3+
/**
4+
*
5+
*/
46
function restore_error_handler() : bool
57
{
68
}

Diff for: stubs/Zend/restore_exception_handler.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
/** @return true */
3+
/**
4+
*
5+
*/
46
function restore_exception_handler() : bool
57
{
68
}

Diff for: stubs/ext/calendar/cal_from_jd.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, int|string|null>
54
* @refcount 1
65
*/
76
function cal_from_jd(int $julian_day, int $calendar) : array

Diff for: stubs/ext/calendar/cal_info.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int|string, int|string|array>
54
* @refcount 1
65
*/
76
function cal_info(int $calendar = -1) : array

Diff for: stubs/ext/curl/curl_multi_info_read.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
/**
44
* @param int $queued_messages
5-
* @return array<string, int|object>|false
65
* @refcount 1
76
*/
87
function curl_multi_info_read(\CurlMultiHandle $multi_handle, &$queued_messages = null) : array|false

Diff for: stubs/ext/curl/curl_version.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, int|string|array>|false
54
* @refcount 1
65
*/
76
function curl_version() : array|false

Diff for: stubs/ext/date/date_get_last_errors.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, int|array>|false
54
* @refcount 1
65
*/
76
function date_get_last_errors() : array|false

Diff for: stubs/ext/date/date_parse.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, mixed>
54
* @refcount 1
65
*/
76
function date_parse(string $datetime) : array

Diff for: stubs/ext/date/date_parse_from_format.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, mixed>
54
* @refcount 1
65
*/
76
function date_parse_from_format(string $format, string $datetime) : array

Diff for: stubs/ext/date/date_sun_info.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, bool|int>
54
* @refcount 1
65
*/
76
function date_sun_info(int $timestamp, float $latitude, float $longitude) : array

Diff for: stubs/ext/date/getdate.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int|string, int|string>
54
* @refcount 1
65
*/
76
function getdate(?int $timestamp = null) : array

Diff for: stubs/ext/date/localtime.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int|string, int>
54
* @refcount 1
65
*/
76
function localtime(?int $timestamp = null, bool $associative = false) : array

Diff for: stubs/ext/date/timezone_abbreviations_list.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, array>
54
* @refcount 1
65
*/
76
function timezone_abbreviations_list() : array

Diff for: stubs/ext/date/timezone_identifiers_list.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function timezone_identifiers_list(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null) : array

Diff for: stubs/ext/date/timezone_location_get.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, float|string>|false
54
* @refcount 1
65
*/
76
function timezone_location_get(\DateTimeZone $object) : array|false

Diff for: stubs/ext/date/timezone_transitions_get.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, array>|false
54
* @refcount 1
65
*/
76
function timezone_transitions_get(\DateTimeZone $object, int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX) : array|false

Diff for: stubs/ext/dba/dba_handlers.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int|string, string>
54
* @refcount 1
65
*/
76
function dba_handlers(bool $full_info = false) : array

Diff for: stubs/ext/dba/dba_key_split.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
/** @return array<int, string>|false */
3+
/**
4+
*
5+
*/
46
function dba_key_split(string|false|null $key) : array|false
57
{
68
}

Diff for: stubs/ext/dba/dba_list.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
/** @return array<int, string> */
3+
/**
4+
*
5+
*/
46
function dba_list() : array
57
{
68
}

Diff for: stubs/ext/enchant/enchant_broker_describe.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, array>
54
* @refcount 1
65
*/
76
function enchant_broker_describe(\EnchantBroker $broker) : array

Diff for: stubs/ext/enchant/enchant_broker_list_dicts.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, array>
54
* @refcount 1
65
*/
76
function enchant_broker_list_dicts(\EnchantBroker $broker) : array

Diff for: stubs/ext/enchant/enchant_dict_describe.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, string>
54
* @refcount 1
65
*/
76
function enchant_dict_describe(\EnchantDictionary $dictionary) : array

Diff for: stubs/ext/enchant/enchant_dict_suggest.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function enchant_dict_suggest(\EnchantDictionary $dictionary, string $word) : array

Diff for: stubs/ext/exif/exif_read_data.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

33
/**
4-
* @param resource|string $file
5-
* @return array<string, mixed>|false
4+
* @param (resource | string) $file
65
* @refcount 1
76
*/
87
function exif_read_data($file, ?string $required_sections = null, bool $as_arrays = false, bool $read_thumbnail = false) : array|false

Diff for: stubs/ext/filter/filter_list.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, string>
54
* @refcount 1
65
*/
76
function filter_list() : array

Diff for: stubs/ext/gd/gd_info.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, string|bool>
54
* @refcount 1
65
*/
76
function gd_info() : array

Diff for: stubs/ext/gd/imageaffinematrixconcat.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<int, float>|false
54
* @refcount 1
65
*/
76
function imageaffinematrixconcat(array $matrix1, array $matrix2) : array|false

Diff for: stubs/ext/gd/imageaffinematrixget.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?php
22

33
/**
4-
* @param array|float $options
4+
* @param (array | float) $options
55
* @refcount 1
6-
* @return array<int, float>|false
76
*/
87
function imageaffinematrixget(int $type, $options) : array|false
98
{

Diff for: stubs/ext/gd/imagecolorset.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
/** @return false|null */
3+
/**
4+
*
5+
*/
46
function imagecolorset(\GdImage $image, int $color, int $red, int $green, int $blue, int $alpha = 0) : ?bool
57
{
68
}

Diff for: stubs/ext/gd/imagecolorsforindex.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
/**
4-
* @return array<string, int>
54
* @refcount 1
65
*/
76
function imagecolorsforindex(\GdImage $image, int $color) : array

Diff for: stubs/ext/gd/imageftbbox.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#ifdef HAVE_GD_FREETYPE
44
/**
5-
* @return array<int, int>|false
65
* @refcount 1
76
*/
87
function imageftbbox(float $size, float $angle, string $font_filename, string $string, array $options = []) : array|false

0 commit comments

Comments
 (0)