update stubs to php8.1 alpha 3
This commit is contained in:
parent
b90586fcc4
commit
f26511b4d3
|
@ -1,4 +1,4 @@
|
|||
FROM php:8.1.0alpha2-alpine
|
||||
FROM php:8.1.0alpha3-alpine
|
||||
RUN echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
|
||||
|
|
|
@ -638,6 +638,7 @@ const CLASSES = array (
|
|||
'ReflectionFunction' => 'Reflection/ReflectionFunction.php',
|
||||
'ReflectionFunctionAbstract' => 'Reflection/ReflectionFunctionAbstract.php',
|
||||
'ReflectionGenerator' => 'Reflection/ReflectionGenerator.php',
|
||||
'ReflectionIntersectionType' => 'Reflection/ReflectionIntersectionType.php',
|
||||
'ReflectionMethod' => 'Reflection/ReflectionMethod.php',
|
||||
'ReflectionNamedType' => 'Reflection/ReflectionNamedType.php',
|
||||
'ReflectionObject' => 'Reflection/ReflectionObject.php',
|
||||
|
@ -6387,6 +6388,7 @@ const CONSTANTS = array (
|
|||
'CURLOPT_INTERFACE' => 'curl/curl_d.php',
|
||||
'CURLOPT_IPRESOLVE' => 'curl/curl_d.php',
|
||||
'CURLOPT_ISSUERCERT' => 'curl/curl_d.php',
|
||||
'CURLOPT_ISSUERCERT_BLOB' => 'curl/curl_d.php',
|
||||
'CURLOPT_KEEP_SENDING_ON_ERROR' => 'curl/curl_d.php',
|
||||
'CURLOPT_KEYPASSWD' => 'curl/curl_d.php',
|
||||
'CURLOPT_KRB4LEVEL' => 'curl/curl_d.php',
|
||||
|
@ -6439,13 +6441,17 @@ const CONSTANTS = array (
|
|||
'CURLOPT_PROXY_CAINFO' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_CAPATH' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_CRLFILE' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_ISSUERCERT' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_ISSUERCERT_BLOB' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_KEYPASSWD' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_PINNEDPUBLICKEY' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SERVICE_NAME' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSLCERT' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSLCERTTYPE' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSLCERT_BLOB' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSLKEY' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSLKEYTYPE' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSLKEY_BLOB' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSLVERSION' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSL_CIPHER_LIST' => 'curl/curl_d.php',
|
||||
'CURLOPT_PROXY_SSL_OPTIONS' => 'curl/curl_d.php',
|
||||
|
@ -6490,11 +6496,13 @@ const CONSTANTS = array (
|
|||
'CURLOPT_SSLCERT' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLCERTPASSWD' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLCERTTYPE' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLCERT_BLOB' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLENGINE' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLENGINE_DEFAULT' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLKEY' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLKEYPASSWD' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLKEYTYPE' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLKEY_BLOB' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSLVERSION' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSL_CIPHER_LIST' => 'curl/curl_d.php',
|
||||
'CURLOPT_SSL_ENABLE_ALPN' => 'curl/curl_d.php',
|
||||
|
@ -11983,6 +11991,8 @@ const CONSTANTS = array (
|
|||
'TYPETEXT' => 'imap/imap.php',
|
||||
'TYPEVIDEO' => 'imap/imap.php',
|
||||
'T_ABSTRACT' => 'tokenizer/tokenizer.php',
|
||||
'T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG' => 'tokenizer/tokenizer.php',
|
||||
'T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG' => 'tokenizer/tokenizer.php',
|
||||
'T_AND_EQUAL' => 'tokenizer/tokenizer.php',
|
||||
'T_ARRAY' => 'tokenizer/tokenizer.php',
|
||||
'T_ARRAY_CAST' => 'tokenizer/tokenizer.php',
|
||||
|
|
|
@ -282,4 +282,7 @@ abstract class ReflectionFunctionAbstract implements Reflector
|
|||
|
||||
#[PhpStormStubsElementAvailable('8.1')]
|
||||
public function getTentativeReturnType() {}
|
||||
|
||||
#[PhpStormStubsElementAvailable('8.1')]
|
||||
public function isStatic() {}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
class ReflectionIntersectionType extends ReflectionType
|
||||
{
|
||||
public function getTypes() {}
|
||||
}
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"require-dev": {
|
||||
"php": "^8.0",
|
||||
"nikic/php-parser": "@stable",
|
||||
"nikic/php-parser": "dev-master",
|
||||
"phpdocumentor/reflection-docblock": "@stable",
|
||||
"phpunit/phpunit": "@stable",
|
||||
"friendsofphp/php-cs-fixer": "@stable"
|
||||
|
|
|
@ -3831,3 +3831,38 @@ define('CURL_VERSION_ALTSVC', 16777216);
|
|||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_DOH_URL', 10279);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_ISSUERCERT_BLOB', 40295);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_PROXY_ISSUERCERT', 10296);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_PROXY_ISSUERCERT_BLOB', 40297);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_PROXY_SSLCERT_BLOB', 40293);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_PROXY_SSLKEY_BLOB', 40294);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_SSLCERT_BLOB', 40291);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('CURLOPT_SSLKEY_BLOB', 40292);
|
||||
|
|
|
@ -3845,7 +3845,8 @@ function numfmt_get_error_message(NumberFormatter $formatter): string {}
|
|||
* @return string|false The normalized string or <b>FALSE</b> if an error occurred.
|
||||
*/
|
||||
#[Pure]
|
||||
function normalizer_normalize(string $string, int $form = Normalizer::FORM_C): string|false {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string|false|null'], default: 'string|false')]
|
||||
function normalizer_normalize(string $string, int $form = Normalizer::FORM_C) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4200,7 +4201,8 @@ function msgfmt_parse(MessageFormatter $formatter, string $string): array|false
|
|||
* @return array|false An array containing items extracted, or <b>FALSE</b> on error
|
||||
*/
|
||||
#[Pure]
|
||||
function msgfmt_parse_message(string $locale, string $pattern, string $message): array|false {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'array|false|null'], default: 'array|false')]
|
||||
function msgfmt_parse_message(string $locale, string $pattern, string $message) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4962,7 +4964,8 @@ function intl_get($calendar, $field) {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_time(IntlCalendar $calendar): float {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'float|false'], default: 'float')]
|
||||
function intlcal_get_time(IntlCalendar $calendar) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5187,7 +5190,8 @@ function intlcal_clear(IntlCalendar $calendar, ?int $field = null): bool {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_field_difference(IntlCalendar $calendar, float $timestamp, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_field_difference(IntlCalendar $calendar, float $timestamp, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5207,7 +5211,8 @@ function intlcal_field_difference(IntlCalendar $calendar, float $timestamp, int
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_actual_maximum(IntlCalendar $calendar, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_actual_maximum(IntlCalendar $calendar, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5227,7 +5232,8 @@ function intlcal_get_actual_maximum(IntlCalendar $calendar, int $field): int {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_actual_minimum(IntlCalendar $calendar, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_actual_minimum(IntlCalendar $calendar, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5250,7 +5256,8 @@ function intlcal_get_actual_minimum(IntlCalendar $calendar, int $field): int {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_day_of_week_type(IntlCalendar $calendar, int $dayOfWeek): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_day_of_week_type(IntlCalendar $calendar, int $dayOfWeek) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5266,7 +5273,8 @@ function intlcal_get_day_of_week_type(IntlCalendar $calendar, int $dayOfWeek): i
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_first_day_of_week(IntlCalendar $calendar): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_first_day_of_week(IntlCalendar $calendar) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5300,7 +5308,8 @@ function intlcal_greates_minimum($calendar, $field) {}
|
|||
* @return int An integer with the value of the time field.
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get(IntlCalendar $calendar, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get(IntlCalendar $calendar, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5321,7 +5330,8 @@ function intlcal_get(IntlCalendar $calendar, int $field): int {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_least_maximum(IntlCalendar $calendar, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_least_maximum(IntlCalendar $calendar, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5340,7 +5350,8 @@ function intlcal_get_least_maximum(IntlCalendar $calendar, int $field): int {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_greatest_minimum(IntlCalendar $calendar, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_greatest_minimum(IntlCalendar $calendar, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5362,7 +5373,8 @@ function intlcal_get_greatest_minimum(IntlCalendar $calendar, int $field): int {
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_locale(IntlCalendar $calendar, int $type): string {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string|false'], default: 'string')]
|
||||
function intlcal_get_locale(IntlCalendar $calendar, int $type) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5394,7 +5406,8 @@ function intcal_get_maximum($calendar, $field) {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_minimal_days_in_first_week(IntlCalendar $calendar): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_minimal_days_in_first_week(IntlCalendar $calendar) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5413,7 +5426,8 @@ function intlcal_get_minimal_days_in_first_week(IntlCalendar $calendar): int {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_minimum(IntlCalendar $calendar, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_minimum(IntlCalendar $calendar, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5463,7 +5477,8 @@ function intlcal_get_type(IntlCalendar $calendar): string {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_weekend_transition(IntlCalendar $calendar, int $dayOfWeek): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_weekend_transition(IntlCalendar $calendar, int $dayOfWeek) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
@ -5530,7 +5545,8 @@ function intlcal_is_set(IntlCalendar $calendar, int $field): bool {}
|
|||
* @since 5.5
|
||||
*/
|
||||
#[Pure]
|
||||
function intlcal_get_maximum(IntlCalendar $calendar, int $field): int {}
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int|false'], default: 'int')]
|
||||
function intlcal_get_maximum(IntlCalendar $calendar, int $field) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
|
||||
|
|
|
@ -189,7 +189,7 @@ define('T_DOUBLE_COLON', 396);
|
|||
* @since 7.4
|
||||
*/
|
||||
define('T_FN', 311);
|
||||
define('T_BAD_CHARACTER', 402);
|
||||
define('T_BAD_CHARACTER', 404);
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
|
@ -211,3 +211,13 @@ define('T_ATTRIBUTE', 350);
|
|||
* @since 8.0
|
||||
*/
|
||||
define('T_NULLSAFE_OBJECT_OPERATOR', 384);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG', 402);
|
||||
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
define('T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG', 403);
|
||||
|
|
Loading…
Reference in New Issue