[phpstorm-stubs] update stubs according to php 5.6
This commit is contained in:
parent
d79053e228
commit
8191142e5a
|
@ -326,7 +326,7 @@ function error_reporting(?int $error_level): int {}
|
|||
* It is possible to define resource constants,
|
||||
* however it is not recommended and may cause unpredictable behavior.
|
||||
* </p>
|
||||
* @param bool $case_insensitive [optional] <p>
|
||||
* @param bool $case_insensitive <p>
|
||||
* If set to true, the constant will be defined case-insensitive.
|
||||
* The default behavior is case-sensitive; i.e.
|
||||
* CONSTANT and Constant represent
|
||||
|
@ -341,7 +341,8 @@ function error_reporting(?int $error_level): int {}
|
|||
function define(
|
||||
string $constant_name,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'mixed'], default: 'null|array|bool|int|float|string')] $value,
|
||||
#[Deprecated()] bool $case_insensitive = false
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] bool $case_insensitive,
|
||||
#[Deprecated(since: 7.3)] bool $case_insensitive = false
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
|
@ -1027,7 +1028,10 @@ function debug_backtrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $lim
|
|||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function debug_print_backtrace(int $options = 0, int $limit = 0): void {}
|
||||
function debug_print_backtrace(
|
||||
int $options = 0,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] int $limit = 0
|
||||
): void {}
|
||||
|
||||
/**
|
||||
* Forces collection of any existing garbage cycles
|
||||
|
|
|
@ -58,7 +58,8 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
|
|||
public function __construct(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $alias = null
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $alias = null,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $fileformat = null
|
||||
) {}
|
||||
|
||||
public function __destruct() {}
|
||||
|
@ -762,13 +763,16 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
|
|||
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
|
||||
* Returns the full path on disk or full phar URL to the currently executing Phar archive
|
||||
* @link https://php.net/manual/en/phar.running.php
|
||||
* @param bool $returnPhar [optional] <p>
|
||||
* @param bool $returnPhar <p>
|
||||
* If <b>FALSE</b>, the full path on disk to the phar
|
||||
* archive is returned. If <b>TRUE</b>, a full phar URL is returned.
|
||||
* </p>
|
||||
* @return string the filename if valid, empty string otherwise.
|
||||
*/
|
||||
final public static function running(bool $returnPhar = true): string {}
|
||||
final public static function running(
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $returnPhar,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] bool $returnPhar = true
|
||||
): string {}
|
||||
|
||||
/**
|
||||
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
|
||||
|
|
|
@ -1546,8 +1546,8 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
|
|||
*/
|
||||
public function __construct(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'object|array'], default: '')] $array = [],
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $iteratorClass = "ArrayIterator"
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $iteratorClass = "ArrayIterator"
|
||||
) {}
|
||||
|
||||
/**
|
||||
|
@ -1842,8 +1842,8 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
|
|||
*/
|
||||
public function __construct(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'object|array'], default: '')] $array = [],
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.1')] $iterator_class = null
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0', to: '7.1')] $iterator_class = null
|
||||
) {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -3396,7 +3396,7 @@ define("CURLOPT_MAIL_AUTH", 10217);
|
|||
* <b>CURLSSLOPT_ALLOW_BEAST</b>: do not attempt to use any workarounds for a security flaw in the SSL3 and TLS1.0 protocols.
|
||||
* <b>CURLSSLOPT_NO_REVOKE</b>: disable certificate revocation checks for those SSL backends where such behavior is present.
|
||||
* @link https://www.php.net/manual/en/function.curl-setopt.php
|
||||
* @since 7.0.7
|
||||
* @since 5.6
|
||||
*/
|
||||
define("CURLOPT_SSL_OPTIONS", 216);
|
||||
/**
|
||||
|
@ -3426,7 +3426,7 @@ define("CURLOPT_TCP_KEEPINTVL", 215);
|
|||
* Value for the <b>CURLOPT_SSL_OPTIONS</b> option.
|
||||
* Do not attempt to use any workarounds for a security flaw in the SSL3 and TLS1.0 protocols.
|
||||
* @link https://www.php.net/manual/en/function.curl-setopt.php
|
||||
* @since 7.0.7
|
||||
* @since 5.6
|
||||
*/
|
||||
define("CURLSSLOPT_ALLOW_BEAST", 1);
|
||||
/**
|
||||
|
|
|
@ -766,15 +766,17 @@ class DateTimeZone
|
|||
|
||||
/**
|
||||
* Returns all transitions for the timezone
|
||||
* @param int $timestampBegin [optional]
|
||||
* @param int $timestampEnd [optional]
|
||||
* @param int $timestampBegin
|
||||
* @param int $timestampEnd
|
||||
* @return array|false
|
||||
* @link https://php.net/manual/en/datetimezone.gettransitions.php
|
||||
*/
|
||||
#[TentativeType]
|
||||
public function getTransitions(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestampBegin = null,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestampEnd = null
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $timestampBegin,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $timestampEnd,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestampBegin = null,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestampEnd = null
|
||||
): array|false {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -205,13 +205,16 @@ class DOMNode
|
|||
/**
|
||||
* Clones a node
|
||||
* @link https://php.net/manual/en/domnode.clonenode.php
|
||||
* @param bool $deep [optional] <p>
|
||||
* @param bool $deep <p>
|
||||
* Indicates whether to copy all descendant nodes. This parameter is
|
||||
* defaulted to false.
|
||||
* </p>
|
||||
* @return static The cloned node.
|
||||
*/
|
||||
public function cloneNode(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $deep = false) {}
|
||||
public function cloneNode(
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $deep,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $deep = false
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Normalizes the node
|
||||
|
@ -1090,7 +1093,10 @@ class DOMDocument extends DOMNode implements DOMParentNode
|
|||
* @return string|false the XML, or false if an error occurred.
|
||||
*/
|
||||
#[TentativeType]
|
||||
public function saveXML(?DOMNode $node = null, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $options = null): string|false {}
|
||||
public function saveXML(
|
||||
?DOMNode $node = null,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $options = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
* Creates a new DOMDocument object
|
||||
|
|
141
intl/intl.php
141
intl/intl.php
|
@ -332,7 +332,10 @@ class Collator
|
|||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
#[TentativeType]
|
||||
public function sortWithSortKeys(array &$array): bool {}
|
||||
public function sortWithSortKeys(
|
||||
array &$array,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $flags = []
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -457,7 +460,10 @@ class Collator
|
|||
*/
|
||||
#[Pure]
|
||||
#[TentativeType]
|
||||
public function getSortKey(#[TypeAware(['8.0' => 'string'], default: '')] $string): string|false {}
|
||||
public function getSortKey(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $string,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $arg2
|
||||
): string|false {}
|
||||
}
|
||||
|
||||
class NumberFormatter
|
||||
|
@ -1252,13 +1258,15 @@ class Normalizer
|
|||
* Normalizes the input provided and returns the normalized string
|
||||
* @link https://php.net/manual/en/normalizer.normalize.php
|
||||
* @param string $string <p>The input string to normalize</p>
|
||||
* @param int $form [optional] <p>One of the normalization forms.</p>
|
||||
* @param int $form <p>One of the normalization forms.</p>
|
||||
* @return string|false The normalized string or <b>FALSE</b> if an error occurred.
|
||||
*/
|
||||
#[TentativeType]
|
||||
public static function normalize(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $string,
|
||||
#[TypeAware(['8.0' => 'int'], default: '')] $form = Normalizer::FORM_C
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $form,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'int'], default: '')] $form = Normalizer::FORM_C,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $arg3
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
|
@ -1266,7 +1274,7 @@ class Normalizer
|
|||
* Checks if the provided string is already in the specified normalization form.
|
||||
* @link https://php.net/manual/en/normalizer.isnormalized.php
|
||||
* @param string $string <p>The input string to normalize</p>
|
||||
* @param int $form [optional] <p>
|
||||
* @param int $form <p>
|
||||
* One of the normalization forms.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> if normalized, <b>FALSE</b> otherwise or if there an error
|
||||
|
@ -1274,7 +1282,9 @@ class Normalizer
|
|||
#[TentativeType]
|
||||
public static function isNormalized(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $string,
|
||||
#[TypeAware(['8.0' => 'int'], default: '')] $form = Normalizer::FORM_C
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $form,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'int'], default: '')] $form = Normalizer::FORM_C,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $arg3
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
|
@ -1431,7 +1441,7 @@ class Locale
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display script for
|
||||
* </p>
|
||||
* @param string $displayLocale [optional] <p>
|
||||
* @param string $displayLocale <p>
|
||||
* Optional format locale to use to display the script name
|
||||
* </p>
|
||||
* @return string Display name of the script for the $locale in the format appropriate for
|
||||
|
@ -1440,7 +1450,8 @@ class Locale
|
|||
#[TentativeType]
|
||||
public static function getDisplayScript(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $locale,
|
||||
#[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
|
@ -1450,7 +1461,7 @@ class Locale
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display region for.
|
||||
* </p>
|
||||
* @param string $displayLocale [optional] <p>
|
||||
* @param string $displayLocale <p>
|
||||
* Optional format locale to use to display the region name
|
||||
* </p>
|
||||
* @return string display name of the region for the $locale in the format appropriate for
|
||||
|
@ -1459,7 +1470,8 @@ class Locale
|
|||
#[TentativeType]
|
||||
public static function getDisplayRegion(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $locale,
|
||||
#[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
|
@ -1469,13 +1481,14 @@ class Locale
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display name for.
|
||||
* </p>
|
||||
* @param string $displayLocale [optional] <p>optional format locale</p>
|
||||
* @param string $displayLocale <p>optional format locale</p>
|
||||
* @return string|false Display name of the locale in the format appropriate for $in_locale.
|
||||
*/
|
||||
#[TentativeType]
|
||||
public static function getDisplayName(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $locale,
|
||||
#[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
|
@ -1485,7 +1498,7 @@ class Locale
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display language for
|
||||
* </p>
|
||||
* @param string $displayLocale [optional] <p>
|
||||
* @param string $displayLocale <p>
|
||||
* Optional format locale to use to display the language name
|
||||
* </p>
|
||||
* @return string|false display name of the language for the $locale in the format appropriate for
|
||||
|
@ -1494,7 +1507,8 @@ class Locale
|
|||
#[TentativeType]
|
||||
public static function getDisplayLanguage(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $locale,
|
||||
#[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
|
@ -1504,7 +1518,7 @@ class Locale
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display variant for
|
||||
* </p>
|
||||
* @param string $displayLocale [optional] <p>
|
||||
* @param string $displayLocale <p>
|
||||
* Optional format locale to use to display the variant name
|
||||
* </p>
|
||||
* @return string|false Display name of the variant for the $locale in the format appropriate for
|
||||
|
@ -1513,7 +1527,8 @@ class Locale
|
|||
#[TentativeType]
|
||||
public static function getDisplayVariant(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $locale,
|
||||
#[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'string|null'], default: '')] $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
|
@ -1585,7 +1600,7 @@ class Locale
|
|||
* @param string $locale <p>
|
||||
* The language range to check against
|
||||
* </p>
|
||||
* @param bool $canonicalize [optional] <p>
|
||||
* @param bool $canonicalize <p>
|
||||
* If true, the arguments will be converted to canonical form before
|
||||
* matching.
|
||||
* </p>
|
||||
|
@ -1595,7 +1610,8 @@ class Locale
|
|||
public static function filterMatches(
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $languageTag,
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $locale,
|
||||
#[TypeAware(['8.0' => 'bool'], default: '')] $canonicalize = false
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $canonicalize,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'bool'], default: '')] $canonicalize = false
|
||||
): ?bool {}
|
||||
|
||||
/**
|
||||
|
@ -1609,11 +1625,11 @@ class Locale
|
|||
* @param string $locale <p>
|
||||
* The locale to use as the language range when matching.
|
||||
* </p>
|
||||
* @param bool $canonicalize [optional] <p>
|
||||
* @param bool $canonicalize <p>
|
||||
* If true, the arguments will be converted to canonical form before
|
||||
* matching.
|
||||
* </p>
|
||||
* @param string $defaultLocale [optional] <p>
|
||||
* @param string $defaultLocale <p>
|
||||
* The locale to use if no match is found.
|
||||
* </p>
|
||||
* @return string The closest matching language tag or default value.
|
||||
|
@ -1622,8 +1638,10 @@ class Locale
|
|||
public static function lookup(
|
||||
array $languageTag,
|
||||
#[TypeAware(['8.0' => 'string'], default: '')] $locale,
|
||||
#[TypeAware(['8.0' => 'bool'], default: '')] $canonicalize = false,
|
||||
#[TypeAware(['8.0' => 'string|null'], default: '')] $defaultLocale = null
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $canonicalize,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $defaultLocale,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'bool'], default: '')] $canonicalize = false,
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'string|null'], default: '')] $defaultLocale = null
|
||||
): ?string {}
|
||||
|
||||
/**
|
||||
|
@ -3855,7 +3873,11 @@ function collator_sort(Collator $object, array &$array, int $flags = 0): bool {}
|
|||
* @param string[] &$array <p>Array of strings to sort</p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function collator_sort_with_sort_keys(Collator $object, array &$array): bool {}
|
||||
function collator_sort_with_sort_keys(
|
||||
Collator $object,
|
||||
array &$array,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $sort_flags = []
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -3921,7 +3943,11 @@ function collator_get_error_message(Collator $object): string|false {}
|
|||
* @return string|false the collation key for the string. Collation keys can be compared directly instead of strings.
|
||||
*/
|
||||
#[Pure]
|
||||
function collator_get_sort_key(Collator $object, string $string): string|false {}
|
||||
function collator_get_sort_key(
|
||||
Collator $object,
|
||||
string $string,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] $arg3
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4273,14 +4299,18 @@ function locale_get_keywords(string $locale): array|false|null {}
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display script for
|
||||
* </p>
|
||||
* @param string|null $displayLocale [optional] <p>
|
||||
* @param string|null $displayLocale <p>
|
||||
* Optional format locale to use to display the script name
|
||||
* </p>
|
||||
* @return string|false Display name of the script for the $locale in the format appropriate for
|
||||
* $in_locale.
|
||||
*/
|
||||
#[Pure]
|
||||
function locale_get_display_script(string $locale, ?string $displayLocale = null): string|false {}
|
||||
function locale_get_display_script(
|
||||
string $locale,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] ?string $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] ?string $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4289,14 +4319,18 @@ function locale_get_display_script(string $locale, ?string $displayLocale = null
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display region for.
|
||||
* </p>
|
||||
* @param string|null $displayLocale [optional] <p>
|
||||
* @param string|null $displayLocale <p>
|
||||
* Optional format locale to use to display the region name
|
||||
* </p>
|
||||
* @return string|false display name of the region for the $locale in the format appropriate for
|
||||
* $in_locale.
|
||||
*/
|
||||
#[Pure]
|
||||
function locale_get_display_region(string $locale, ?string $displayLocale = null): string|false {}
|
||||
function locale_get_display_region(
|
||||
string $locale,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] ?string $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] ?string $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4305,11 +4339,15 @@ function locale_get_display_region(string $locale, ?string $displayLocale = null
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display name for.
|
||||
* </p>
|
||||
* @param string|null $displayLocale [optional] <p>optional format locale</p>
|
||||
* @param string|null $displayLocale <p>optional format locale</p>
|
||||
* @return string|false Display name of the locale in the format appropriate for $in_locale.
|
||||
*/
|
||||
#[Pure]
|
||||
function locale_get_display_name(string $locale, ?string $displayLocale = null): string|false {}
|
||||
function locale_get_display_name(
|
||||
string $locale,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] ?string $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] ?string $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4318,14 +4356,18 @@ function locale_get_display_name(string $locale, ?string $displayLocale = null):
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display language for
|
||||
* </p>
|
||||
* @param string|null $displayLocale [optional] <p>
|
||||
* @param string|null $displayLocale <p>
|
||||
* Optional format locale to use to display the language name
|
||||
* </p>
|
||||
* @return string|false display name of the language for the $locale in the format appropriate for
|
||||
* $in_locale.
|
||||
*/
|
||||
#[Pure]
|
||||
function locale_get_display_language(string $locale, ?string $displayLocale = null): string|false {}
|
||||
function locale_get_display_language(
|
||||
string $locale,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] ?string $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] ?string $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4334,14 +4376,18 @@ function locale_get_display_language(string $locale, ?string $displayLocale = nu
|
|||
* @param string $locale <p>
|
||||
* The locale to return a display variant for
|
||||
* </p>
|
||||
* @param string|null $displayLocale [optional] <p>
|
||||
* @param string|null $displayLocale <p>
|
||||
* Optional format locale to use to display the variant name
|
||||
* </p>
|
||||
* @return string|false Display name of the variant for the $locale in the format appropriate for
|
||||
* $in_locale.
|
||||
*/
|
||||
#[Pure]
|
||||
function locale_get_display_variant(string $locale, ?string $displayLocale = null): string|false {}
|
||||
function locale_get_display_variant(
|
||||
string $locale,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] ?string $displayLocale,
|
||||
#[ElementAvailable(from: '7.0')] ?string $displayLocale = null
|
||||
): string|false {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -4412,14 +4458,19 @@ function locale_get_all_variants(string $locale): ?array {}
|
|||
* @param string $locale <p>
|
||||
* The language range to check against
|
||||
* </p>
|
||||
* @param bool $canonicalize [optional] <p>
|
||||
* @param bool $canonicalize <p>
|
||||
* If true, the arguments will be converted to canonical form before
|
||||
* matching.
|
||||
* </p>
|
||||
* @return bool|null <b>TRUE</b> if $locale matches $langtag <b>FALSE</b> otherwise.
|
||||
*/
|
||||
#[Pure]
|
||||
function locale_filter_matches(string $languageTag, string $locale, bool $canonicalize = false): ?bool {}
|
||||
function locale_filter_matches(
|
||||
string $languageTag,
|
||||
string $locale,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] bool $canonicalize,
|
||||
#[ElementAvailable(from: '7.0')] bool $canonicalize = false
|
||||
): ?bool {}
|
||||
|
||||
/**
|
||||
* Canonicalize the locale string
|
||||
|
@ -4441,17 +4492,24 @@ function locale_canonicalize(string $locale): ?string {}
|
|||
* @param string $locale <p>
|
||||
* The locale to use as the language range when matching.
|
||||
* </p>
|
||||
* @param bool $canonicalize [optional] <p>
|
||||
* @param bool $canonicalize <p>
|
||||
* If true, the arguments will be converted to canonical form before
|
||||
* matching.
|
||||
* </p>
|
||||
* @param string|null $defaultLocale [optional] <p>
|
||||
* @param string|null $defaultLocale <p>
|
||||
* The locale to use if no match is found.
|
||||
* </p>
|
||||
* @return string|null The closest matching language tag or default value.
|
||||
*/
|
||||
#[Pure]
|
||||
function locale_lookup(array $languageTag, string $locale, bool $canonicalize = false, ?string $defaultLocale = null): ?string {}
|
||||
function locale_lookup(
|
||||
array $languageTag,
|
||||
string $locale,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] bool $canonicalize,
|
||||
#[ElementAvailable(from: '5.3', to: '5.6')] ?string $defaultLocale,
|
||||
#[ElementAvailable(from: '7.0')] bool $canonicalize = false,
|
||||
#[ElementAvailable(from: '7.0')] ?string $defaultLocale = null,
|
||||
): ?string {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
|
||||
|
@ -7466,7 +7524,10 @@ class UConverter
|
|||
* @return array|false|null
|
||||
*/
|
||||
#[TentativeType]
|
||||
public static function getAliases(#[TypeAware(['8.0' => 'string'], default: '')] $name): array|false|null {}
|
||||
public static function getAliases(
|
||||
#[ElementAvailable(from: '5.5', to: '5.6')] $name = '',
|
||||
#[ElementAvailable(from: '7.0')] #[TypeAware(['8.0' => 'string'], default: '')] $name
|
||||
): array|false|null {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
|
|
|
@ -1073,7 +1073,12 @@ function mb_ereg_replace_callback(string $pattern, callable $callback, string $s
|
|||
* @return string|false|null The resultant string or false on error.
|
||||
*/
|
||||
#[Pure]
|
||||
function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
|
||||
function mb_eregi_replace(
|
||||
string $pattern,
|
||||
string $replacement,
|
||||
string $string,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] ?string $options = null
|
||||
): string|false|null {}
|
||||
|
||||
/**
|
||||
* Split multibyte string using regular expression
|
||||
|
@ -1255,7 +1260,12 @@ function mbereg_replace($pattern, $replacement, $string, $option) {}
|
|||
* @removed 8.0
|
||||
*/
|
||||
#[Deprecated(replacement: "mb_eregi_replace(%parametersList%)", since: "7.3")]
|
||||
function mberegi_replace($pattern, $replacement, $string, string $option = "msri"): string {}
|
||||
function mberegi_replace(
|
||||
$pattern,
|
||||
$replacement,
|
||||
$string,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] string $option = "msri"
|
||||
): string {}
|
||||
|
||||
/**
|
||||
* @param $pattern
|
||||
|
|
|
@ -1227,7 +1227,7 @@ class mysqli_result implements IteratorAggregate
|
|||
* @return array an array of associative or numeric arrays holding result rows.
|
||||
*/
|
||||
#[TentativeType]
|
||||
public function fetch_all(int $mode = MYSQLI_NUM): array {}
|
||||
public function fetch_all(#[PhpStormStubsElementAvailable(from: '7.0')] int $mode = MYSQLI_NUM): array {}
|
||||
|
||||
/**
|
||||
* Fetch the next row of a result set as an associative, a numeric array, or both
|
||||
|
@ -1901,7 +1901,10 @@ function mysqli_fetch_lengths(mysqli_result $result): array|false {}
|
|||
* @param int $mode
|
||||
* @return array Returns an array of associative or numeric arrays holding result rows.
|
||||
*/
|
||||
function mysqli_fetch_all(mysqli_result $result, int $mode = MYSQLI_NUM): array {}
|
||||
function mysqli_fetch_all(
|
||||
mysqli_result $result,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] int $mode = MYSQLI_NUM
|
||||
): array {}
|
||||
|
||||
/**
|
||||
* Fetch the next row of a result set as an associative, a numeric array, or both
|
||||
|
|
|
@ -818,7 +818,7 @@ function openssl_seal(
|
|||
array $public_key,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $cipher_algo = '',
|
||||
#[PhpStormStubsElementAvailable(from: '8.0')] string $cipher_algo,
|
||||
&$iv = null
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] &$iv = null
|
||||
): int|false {}
|
||||
|
||||
/**
|
||||
|
@ -840,9 +840,9 @@ function openssl_open(
|
|||
&$output,
|
||||
string $encrypted_key,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'OpenSSLAsymmetricKey|OpenSSLCertificate|array|string'], default: 'resource|array|string')] $private_key,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $cipher_algo = '',
|
||||
#[PhpStormStubsElementAvailable(from: '7.0', to: '7.4')] string $cipher_algo = '',
|
||||
#[PhpStormStubsElementAvailable(from: '8.0')] string $cipher_algo,
|
||||
?string $iv
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] ?string $iv
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -95,7 +95,12 @@ function pcntl_fork(): int {}
|
|||
* child which exited, -1 on error or zero if <b>WNOHANG</b> was used and no
|
||||
* child was available
|
||||
*/
|
||||
function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usage = []): int {}
|
||||
function pcntl_waitpid(
|
||||
int $process_id,
|
||||
&$status,
|
||||
int $flags = 0,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] &$resource_usage
|
||||
= []): int {}
|
||||
|
||||
/**
|
||||
* Waits on or returns the status of a forked child
|
||||
|
@ -141,7 +146,11 @@ function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usa
|
|||
* child which exited, -1 on error or zero if WNOHANG was provided as an
|
||||
* option (on wait3-available systems) and no child was available.
|
||||
*/
|
||||
function pcntl_wait(&$status, int $flags = 0, &$resource_usage = []): int {}
|
||||
function pcntl_wait(
|
||||
&$status,
|
||||
int $flags = 0,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] &$resource_usage
|
||||
= []): int {}
|
||||
|
||||
/**
|
||||
* Installs a signal handler
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
use JetBrains\PhpStorm\ArrayShape;
|
||||
use JetBrains\PhpStorm\Deprecated;
|
||||
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
|
||||
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
|
||||
|
||||
/**
|
||||
* Get and/or set the current session name.<br/>
|
||||
|
@ -167,7 +168,7 @@ function session_encode() {}
|
|||
* @return bool This function returns true if a session was successfully started,
|
||||
* otherwise false.
|
||||
*/
|
||||
function session_start(array $options = []): bool {}
|
||||
function session_start(#[PhpStormStubsElementAvailable(from: '7.0')] array $options = []): bool {}
|
||||
|
||||
/**
|
||||
* Create new session id
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// Start of soap v.
|
||||
use JetBrains\PhpStorm\Deprecated;
|
||||
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
|
||||
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
|
||||
use JetBrains\PhpStorm\Internal\TentativeType;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
|
@ -461,7 +462,7 @@ class SoapClient
|
|||
/**
|
||||
* Sets SOAP headers for subsequent calls
|
||||
* @link https://php.net/manual/en/soapclient.setsoapheaders.php
|
||||
* @param mixed $headers [optional] <p>
|
||||
* @param mixed $headers <p>
|
||||
* The headers to be set. It could be <b>SoapHeader</b>
|
||||
* object or array of <b>SoapHeader</b> objects.
|
||||
* If not specified or set to <b>NULL</b>, the headers will be deleted.
|
||||
|
@ -470,7 +471,10 @@ class SoapClient
|
|||
* @since 5.0.5
|
||||
*/
|
||||
#[TentativeType]
|
||||
public function __setSoapHeaders($headers = null): bool {}
|
||||
public function __setSoapHeaders(
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $headers,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] $headers = null
|
||||
): bool {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -56,7 +56,7 @@ class SQLite3
|
|||
* @param string $filename <p>
|
||||
* Path to the SQLite database, or :memory: to use in-memory database.
|
||||
* </p>
|
||||
* @param int $flags [optional] <p>
|
||||
* @param int $flags <p>
|
||||
* Optional flags used to determine how to open the SQLite database. By
|
||||
* default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE.
|
||||
* </p>
|
||||
|
@ -64,7 +64,7 @@ class SQLite3
|
|||
* SQLITE3_OPEN_READONLY: Open the database for
|
||||
* reading only.
|
||||
* </p>
|
||||
* @param string $encryptionKey [optional] <p>
|
||||
* @param string $encryptionKey <p>
|
||||
* An optional encryption key used when encrypting and decrypting an
|
||||
* SQLite database.
|
||||
* </p>
|
||||
|
@ -73,8 +73,10 @@ class SQLite3
|
|||
#[TentativeType]
|
||||
public function open(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $encryptionKey = null
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $flags,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $encryptionKey,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $encryptionKey = null
|
||||
): void {}
|
||||
|
||||
/**
|
||||
|
@ -334,7 +336,10 @@ class SQLite3
|
|||
* @return bool Returns the old value; true if exceptions were enabled, false otherwise.
|
||||
*/
|
||||
#[TentativeType]
|
||||
public function enableExceptions(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enable = false): bool {}
|
||||
public function enableExceptions(
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $enable,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enable = false
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
* Instantiates an SQLite3 object and opens an SQLite 3 database
|
||||
|
@ -342,7 +347,7 @@ class SQLite3
|
|||
* @param string $filename <p>
|
||||
* Path to the SQLite database, or :memory: to use in-memory database.
|
||||
* </p>
|
||||
* @param int $flags [optional] <p>
|
||||
* @param int $flags <p>
|
||||
* Optional flags used to determine how to open the SQLite database. By
|
||||
* default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE.
|
||||
* </p>
|
||||
|
@ -350,15 +355,17 @@ class SQLite3
|
|||
* SQLITE3_OPEN_READONLY: Open the database for
|
||||
* reading only.
|
||||
* </p>
|
||||
* @param string $encryptionKey [optional] <p>
|
||||
* @param string $encryptionKey <p>
|
||||
* An optional encryption key used when encrypting and decrypting an
|
||||
* SQLite database.
|
||||
* </p>
|
||||
*/
|
||||
public function __construct(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $encryptionKey = null
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $flags,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $encryptionKey,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $encryptionKey = null
|
||||
) {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -727,7 +727,11 @@ function htmlspecialchars_decode(string $string, int $flags = ENT_QUOTES|ENT_SUB
|
|||
* @return array the translation table as an array.
|
||||
*/
|
||||
#[Pure]
|
||||
function get_html_translation_table(int $table = 0, int $flags = ENT_QUOTES|ENT_SUBSTITUTE, string $encoding = "UTF-8"): array {}
|
||||
function get_html_translation_table(
|
||||
int $table = 0,
|
||||
int $flags = ENT_QUOTES|ENT_SUBSTITUTE,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] string $encoding = "UTF-8"
|
||||
): array {}
|
||||
|
||||
/**
|
||||
* Calculate the sha1 hash of a string
|
||||
|
@ -1224,7 +1228,7 @@ function php_sapi_name(): string|false {}
|
|||
* @return string the description, as a string.
|
||||
*/
|
||||
#[Pure(true)]
|
||||
function php_uname(string $mode = 'a'): string {}
|
||||
function php_uname(#[PhpStormStubsElementAvailable(from: '7.0')] string $mode = 'a'): string {}
|
||||
|
||||
/**
|
||||
* Return a list of .ini files parsed from the additional ini dir
|
||||
|
|
|
@ -234,7 +234,7 @@ function basename(string $path, string $suffix = ''): string {}
|
|||
* /component removed.
|
||||
*/
|
||||
#[Pure]
|
||||
function dirname(string $path, int $levels = 1): string {}
|
||||
function dirname(string $path, #[PhpStormStubsElementAvailable(from: '7.0')] int $levels = 1): string {}
|
||||
|
||||
/**
|
||||
* Returns information about a file path
|
||||
|
|
|
@ -176,7 +176,7 @@ function serialize(mixed $value): string {}
|
|||
* In case the passed string is not unserializeable, false is returned and
|
||||
* E_NOTICE is issued.</p>
|
||||
*/
|
||||
function unserialize(string $data, array $options = []): mixed {}
|
||||
function unserialize(string $data, #[PhpStormStubsElementAvailable(from: '7.0')] array $options = []): mixed {}
|
||||
|
||||
/**
|
||||
* Dumps information about a variable
|
||||
|
@ -440,7 +440,7 @@ function ini_get(string $option): string|false {}
|
|||
* </p>
|
||||
*/
|
||||
#[Pure(true)]
|
||||
function ini_get_all(?string $extension, bool $details = true): array|false {}
|
||||
function ini_get_all(?string $extension, #[PhpStormStubsElementAvailable(from: '7.0')] bool $details = true): array|false {}
|
||||
|
||||
/**
|
||||
* Sets the value of a configuration option
|
||||
|
|
|
@ -652,7 +652,7 @@ function fputcsv(
|
|||
array $fields,
|
||||
string $separator = ",",
|
||||
string $enclosure = '"',
|
||||
string $escape = "\\",
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] string $escape = "\\",
|
||||
#[PhpStormStubsElementAvailable('8.1')] string $eol = PHP_EOL
|
||||
): int|false {}
|
||||
|
||||
|
@ -1045,7 +1045,12 @@ function get_headers(
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function stream_set_timeout($stream, int $seconds, int $microseconds = 0): bool {}
|
||||
function stream_set_timeout(
|
||||
$stream,
|
||||
int $seconds,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] int $microseconds,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] int $microseconds = 0
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
* Alias:
|
||||
|
@ -1058,12 +1063,17 @@ function stream_set_timeout($stream, int $seconds, int $microseconds = 0): bool
|
|||
* @param int $seconds <p>
|
||||
* The seconds part of the timeout to be set.
|
||||
* </p>
|
||||
* @param int $microseconds [optional] <p>
|
||||
* @param int $microseconds <p>
|
||||
* The microseconds part of the timeout to be set.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function socket_set_timeout($stream, int $seconds, int $microseconds = 0): bool {}
|
||||
function socket_set_timeout(
|
||||
$stream,
|
||||
int $seconds,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] int $microseconds,
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] int $microseconds = 0
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
* Alias:
|
||||
|
|
|
@ -887,7 +887,7 @@ function key_exists($key, array $array): bool {}
|
|||
*/
|
||||
function assert(
|
||||
mixed $assertion,
|
||||
#[LanguageLevelTypeAware(['7.0' => 'Throwable|string|null'], default: 'string')] $description = null
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['7.0' => 'Throwable|string|null'], default: 'string')] $description = null
|
||||
): bool {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -961,6 +961,7 @@
|
|||
{
|
||||
"description": "parameter mismatch",
|
||||
"versions": [
|
||||
5.6,
|
||||
7.0
|
||||
]
|
||||
}
|
||||
|
@ -968,6 +969,28 @@
|
|||
}
|
||||
],
|
||||
"classes": [
|
||||
{
|
||||
"name": "DOMException",
|
||||
"problems": [
|
||||
{
|
||||
"description": "has wrong final modifier",
|
||||
"versions": [
|
||||
5.6
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mysqli_sql_exception",
|
||||
"problems": [
|
||||
{
|
||||
"description": "has wrong final modifier",
|
||||
"versions": [
|
||||
5.6
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Yaf_Application",
|
||||
"methods": [
|
||||
|
@ -3054,6 +3077,7 @@
|
|||
{
|
||||
"description": "has wrong final modifier",
|
||||
"versions": [
|
||||
5.6,
|
||||
7.0,
|
||||
7.1,
|
||||
7.2,
|
||||
|
@ -3118,6 +3142,7 @@
|
|||
{
|
||||
"description": "has wrong static modifier",
|
||||
"versions": [
|
||||
5.6,
|
||||
7.0,
|
||||
7.1,
|
||||
7.2,
|
||||
|
@ -3133,6 +3158,7 @@
|
|||
{
|
||||
"description": "has wrong static modifier",
|
||||
"versions": [
|
||||
5.6,
|
||||
7.0,
|
||||
7.1,
|
||||
7.2,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
// Start of tokenizer v.0.1
|
||||
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
/**
|
||||
|
@ -28,7 +29,7 @@ use JetBrains\PhpStorm\Pure;
|
|||
* content of the original token in element 1 and the line number in element 2.
|
||||
*/
|
||||
#[Pure]
|
||||
function token_get_all(string $code, int $flags = 0): array {}
|
||||
function token_get_all(string $code, #[PhpStormStubsElementAvailable(from: '7.0')] int $flags = 0): array {}
|
||||
|
||||
/**
|
||||
* Get the symbolic name of a given PHP token
|
||||
|
@ -229,3 +230,8 @@ define('T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG', 404);
|
|||
* @since 8.1
|
||||
*/
|
||||
define('T_READONLY', 327);
|
||||
|
||||
/**
|
||||
* @removed 7.0
|
||||
*/
|
||||
define('T_CHARACTER', 315);
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
// Start of xmlreader v.0.2
|
||||
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
|
||||
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
|
||||
use JetBrains\PhpStorm\Internal\TentativeType;
|
||||
|
||||
/**
|
||||
|
@ -449,6 +450,8 @@ class XMLReader
|
|||
* @since 5.1.2
|
||||
*/
|
||||
#[TentativeType]
|
||||
public function expand(#[LanguageLevelTypeAware(['8.0' => 'DOMNode|null'], default: '')] $baseNode = null): DOMNode|false {}
|
||||
public function expand(
|
||||
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'DOMNode|null'], default: '')] $baseNode = null
|
||||
): DOMNode|false {}
|
||||
}
|
||||
// End of xmlreader v.0.2
|
||||
|
|
Loading…
Reference in New Issue