Skip to content

Commit 6029589

Browse files
committed
Update stubs
1 parent 8da2c42 commit 6029589

File tree

169 files changed

+8965
-8319
lines changed

Some content is hidden

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

169 files changed

+8965
-8319
lines changed

Php8StubsMap.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2850,6 +2850,41 @@ public function __construct(int $phpVersionId)
28502850
]);
28512851
}
28522852

2853+
if ($phpVersionId >= 80500) {
2854+
$classes = \array_merge($classes, [
2855+
'curlsharepersistenthandle' => 'stubs/ext/curl/CurlSharePersistentHandle.php',
2856+
'intllistformatter' => 'stubs/ext/intl/listformatter/IntlListFormatter.php',
2857+
'nodiscard' => 'stubs/Zend/NoDiscard.php',
2858+
'uri\\invaliduriexception' => 'stubs/ext/uri/Uri/InvalidUriException.php',
2859+
'uri\\rfc3986\\uri' => 'stubs/ext/uri/Uri/Rfc3986/Uri.php',
2860+
'uri\\uricomparisonmode' => 'stubs/ext/uri/Uri/UriComparisonMode.php',
2861+
'uri\\uriexception' => 'stubs/ext/uri/Uri/UriException.php',
2862+
'uri\\whatwg\\invalidurlexception' => 'stubs/ext/uri/Uri/WhatWg/InvalidUrlException.php',
2863+
'uri\\whatwg\\url' => 'stubs/ext/uri/Uri/WhatWg/Url.php',
2864+
'uri\\whatwg\\urlvalidationerror' => 'stubs/ext/uri/Uri/WhatWg/UrlValidationError.php',
2865+
'uri\\whatwg\\urlvalidationerrortype' => 'stubs/ext/uri/Uri/WhatWg/UrlValidationErrorType.php',
2866+
]);
2867+
2868+
$functions = \array_merge($functions, [
2869+
'array_first' => 'stubs/ext/standard/array_first.php',
2870+
'array_last' => 'stubs/ext/standard/array_last.php',
2871+
'clone' => 'stubs/Zend/clone.php',
2872+
'curl_multi_get_handles' => 'stubs/ext/curl/curl_multi_get_handles.php',
2873+
'curl_share_init_persistent' => 'stubs/ext/curl/curl_share_init_persistent.php',
2874+
'enchant_dict_remove' => 'stubs/ext/enchant/enchant_dict_remove.php',
2875+
'enchant_dict_remove_from_session' => 'stubs/ext/enchant/enchant_dict_remove_from_session.php',
2876+
'get_error_handler' => 'stubs/Zend/get_error_handler.php',
2877+
'get_exception_handler' => 'stubs/Zend/get_exception_handler.php',
2878+
'grapheme_levenshtein' => 'stubs/ext/intl/grapheme_levenshtein.php',
2879+
'locale_add_likely_subtags' => 'stubs/ext/intl/locale_add_likely_subtags.php',
2880+
'locale_is_right_to_left' => 'stubs/ext/intl/locale_is_right_to_left.php',
2881+
'locale_minimize_subtags' => 'stubs/ext/intl/locale_minimize_subtags.php',
2882+
'opcache_is_script_cached_in_file_cache' => 'stubs/ext/opcache/opcache_is_script_cached_in_file_cache.php',
2883+
'pg_close_stmt' => 'stubs/ext/pgsql/pg_close_stmt.php',
2884+
'pg_service' => 'stubs/ext/pgsql/pg_service.php',
2885+
]);
2886+
}
2887+
28532888
// UPDATE BELONGS HERE
28542889

28552890
$this->classes = $classes;

stubs/Zend/Attribute.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ public function __construct(int $flags = Attribute::TARGET_ALL)
8080
/** @cvalue ZEND_ATTRIBUTE_TARGET_PARAMETER */
8181
#[\Since('8.3')]
8282
const int TARGET_PARAMETER = UNKNOWN;
83+
/** @cvalue ZEND_ATTRIBUTE_TARGET_CONST */
84+
#[\Since('8.5')]
85+
const int TARGET_CONSTANT = UNKNOWN;
8386
/** @cvalue ZEND_ATTRIBUTE_TARGET_ALL */
8487
#[\Since('8.3')]
8588
const int TARGET_ALL = UNKNOWN;

stubs/Zend/Closure.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ public function call(object $newThis, mixed ...$args): mixed
1818
public static function fromCallable(callable $callback): Closure
1919
{
2020
}
21+
#[\Since('8.5')]
22+
public static function getCurrent(): Closure
23+
{
24+
}
2125
}

stubs/Zend/Deprecated.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#[\Since('8.4')]
88
final class Deprecated
99
{
10-
public readonly ?string $message;
11-
public readonly ?string $since;
1210
public function __construct(?string $message = null, ?string $since = null)
1311
{
1412
}

stubs/Zend/NoDiscard.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION)]
7+
#[\Since('8.5')]
8+
final class NoDiscard
9+
{
10+
public readonly ?string $message;
11+
public function __construct(?string $message = null)
12+
{
13+
}
14+
}

stubs/Zend/clone.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
/** @refcount 1 */
4+
#[\Since('8.5')]
5+
function clone(object $object, array $withProperties = []): object
6+
{
7+
}

stubs/Zend/get_error_handler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
#[\Since('8.5')]
4+
function get_error_handler(): ?callable
5+
{
6+
}

stubs/Zend/get_exception_handler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
#[\Since('8.5')]
4+
function get_exception_handler(): ?callable
5+
{
6+
}

stubs/ext/bcmath/BcMath/Number.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
#[\Since('8.4')]
77
final readonly class Number implements \Stringable
88
{
9-
/** @virtual */
10-
public string $value;
11-
/** @virtual */
12-
public int $scale;
139
public function __construct(string|int $num)
1410
{
1511
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
* @not-serializable
6+
*/
7+
#[\Since('8.5')]
8+
final class CurlSharePersistentHandle
9+
{
10+
public readonly array $options;
11+
}

0 commit comments

Comments
 (0)