Simplify annotation + fix wrong to values

This commit is contained in:
Maxim.Kolmakov 2020-11-11 17:26:46 +01:00 committed by Maxim Kolmakov
parent 7236db87f6
commit 1d6f06d38b
18 changed files with 75 additions and 75 deletions

View File

@ -978,7 +978,7 @@ class PDO {
*/
public function exec ($statement) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* Executes an SQL statement, returning a result set as a PDOStatement object
@ -1572,7 +1572,7 @@ class PDOStatement implements IteratorAggregate
*/
public function getColumnMeta ($column) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* Set the default fetch mode for this statement

View File

@ -90,7 +90,7 @@ class CURLFile {
*/
function curl_init ($url = null) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Initialize a cURL session
* @link https://php.net/manual/en/function.curl-init.php
@ -2178,7 +2178,7 @@ function curl_share_close ($share_handle) {}
*/
function curl_share_init () {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Initialize a cURL share handle
@ -2403,7 +2403,7 @@ function curl_close ($handle) {}
*/
function curl_multi_init () {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Returns a new cURL multi handle
* @link https://php.net/manual/en/function.curl-multi-init.php

View File

@ -4,7 +4,7 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[PhpStormStubsElementAvailable("8.0")]
#[PhpStormStubsElementAvailable('8.0')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* create a new broker object capable of requesting
@ -13,7 +13,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
*/
function enchant_broker_init () {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* create a new broker object capable of requesting
@ -77,7 +77,7 @@ function enchant_broker_get_dict_path ($broker, $dict_type) {}
*/
function enchant_broker_list_dicts ($broker) {}
#[PhpStormStubsElementAvailable('5.3', '8.0')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* create a new dictionary using a tag
@ -122,7 +122,7 @@ function enchant_broker_request_dict ($broker, $tag) {}
*/
function enchant_broker_request_pwl_dict ($broker, $filename) {}
#[PhpStormStubsElementAvailable('5.3', '8.0')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* creates a dictionary using a PWL file

View File

@ -224,7 +224,7 @@ function imagecolorallocate ($image, $red, $green, $blue) {}
*/
function imagepalettecopy ($destination, $source) {}
#[PhpStormStubsElementAvailable("8.0")]
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from the image stream in the string
* @link https://php.net/manual/en/function.imagecreatefromstring.php
@ -238,7 +238,7 @@ function imagepalettecopy ($destination, $source) {}
#[Pure]
function imagecreatefromstring ($image) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from the image stream in the string
* @link https://php.net/manual/en/function.imagecreatefromstring.php
@ -515,7 +515,7 @@ function imagecopymergegray ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $
*/
function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
#[PhpStormStubsElementAvailable("8.0")]
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new palette based image
* @link https://php.net/manual/en/function.imagecreate.php
@ -530,7 +530,7 @@ function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_
#[Pure]
function imagecreate ($width, $height) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new palette based image
* @link https://php.net/manual/en/function.imagecreate.php
@ -562,7 +562,7 @@ function imagecreate($width, $height)
#[Pure]
function imagecreatetruecolor ($width, $height) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new true color image
* @link https://php.net/manual/en/function.imagecreatetruecolor.php
@ -588,7 +588,7 @@ function imagecreatetruecolor ($width, $height) {}
#[Pure]
function imageistruecolor ($image) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Finds whether an image is a truecolor image
* @link https://php.net/manual/en/function.imageistruecolor.php
@ -835,7 +835,7 @@ function imagecolorexactalpha ($image, $red, $green, $blue, $alpha) {}
*/
function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Rotate an image with a given angle
* @link https://php.net/manual/en/function.imagerotate.php
@ -929,7 +929,7 @@ function imagesetstyle ($image, array $style) {}
*/
function imagecreatefrompng ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefrompng.php
@ -951,7 +951,7 @@ function imagecreatefrompng ($filename) {}
*/
function imagecreatefromgif ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromgif.php
@ -974,7 +974,7 @@ function imagecreatefromgif ($filename) {}
function imagecreatefromjpeg ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromjpeg.php
@ -996,7 +996,7 @@ function imagecreatefromjpeg ($filename) {}
*/
function imagecreatefromwbmp ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromwbmp.php
@ -1019,7 +1019,7 @@ function imagecreatefromwbmp ($filename) {}
*/
function imagecreatefromwebp ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromwebp.php
@ -1042,7 +1042,7 @@ function imagecreatefromwebp ($filename) {}
*/
function imagecreatefromxbm ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromxbm.php
@ -1064,7 +1064,7 @@ function imagecreatefromxbm ($filename) {}
*/
function imagecreatefromxpm ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromxpm.php
@ -1086,7 +1086,7 @@ function imagecreatefromxpm ($filename) {}
*/
function imagecreatefromgd ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from GD file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd.php
@ -1097,7 +1097,7 @@ function imagecreatefromgd ($filename) {}
*/
function imagecreatefromgd ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from GD2 file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd2.php
@ -1108,7 +1108,7 @@ function imagecreatefromgd ($filename) {}
*/
function imagecreatefromgd2 ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from GD2 file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd2.php
@ -1142,7 +1142,7 @@ function imagecreatefromgd2 ($filename) {}
*/
function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from a given part of GD2 file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd2part.php
@ -1350,7 +1350,7 @@ function imagefill ($image, $x, $y, $color) {}
*/
function imagefilledpolygon ($image, array $points, $num_points, $color) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Draw a filled polygon
* @link https://php.net/manual/en/function.imagefilledpolygon.php
@ -1559,7 +1559,7 @@ function imageloadfont ($file) {}
*/
function imagepolygon ($image, array $points, $num_points, $color) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Draws a polygon
* @link https://php.net/manual/en/function.imagepolygon.php
@ -2098,7 +2098,7 @@ function imagefttext ($image, $size, $angle, $x, $y, $color, $fontfile, $text, $
*/
function imagepsloadfont ($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Load a PostScript Type 1 font from file
* @link https://php.net/manual/en/function.imagepsloadfont.php
@ -2496,7 +2496,7 @@ function imagegetclip ($im) {}
*/
function imageopenpolygon ($image , $points, $num_points, $color) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* <b>imageopenpolygon()</b> draws an open polygon on the given <b>image.</b> Contrary to {@see imagepolygon()}, no line is drawn between the last and the first point.
* @param resource|GdImage $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
@ -2527,7 +2527,7 @@ function imageopenpolygon ($image , $points, $num_points, $color) {}
*/
function imagecreatefrombmp($filename){}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* <b>imagecreatefrombmp()</b> returns an image identifier representing the image obtained from the given filename.
* <b>TIP</b> A URL can be used as a filename with this function if the fopen wrappers have been enabled. See {@see fopen()} for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide.
@ -2560,7 +2560,7 @@ function imagebmp ($image, $to = null, $compressed = true) {}
*/
function imagecreatefromtga($filename) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* @param string $filename
* @return resource|false
@ -2578,7 +2578,7 @@ function imagecreatefromtga($filename) {}
#[Pure]
function imagegrabscreen() {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Captures the whole screen
*
@ -2602,7 +2602,7 @@ function imagegrabscreen() {}
#[Pure]
function imagegrabwindow($handle, $client_area = null) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Captures a window
*
@ -3204,7 +3204,7 @@ define('IMG_TGA', 128);
*/
function imageaffine($image, $affine, $clip = null) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Return an image containing the affine tramsformed src image, using an optional clipping area
* @link https://secure.php.net/manual/en/function.imageaffine.php
@ -3250,7 +3250,7 @@ function imageaffinematrixget ($type, $options = null) {}
*/
function imagecrop ($image, $rect) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Crop an image using the given coordinates and size, x, y, width and height
* @link https://secure.php.net/manual/en/function.imagecrop.php
@ -3285,7 +3285,7 @@ function imagecrop ($image, $rect) {}
*/
function imagecropauto ($image, $mode = IMG_CROP_DEFAULT, $threshold = .5, $color = -1) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Crop an image automatically using one of the available modes
* @link https://secure.php.net/manual/en/function.imagecropauto.php
@ -3374,7 +3374,7 @@ function imagepalettetotruecolor ($image) {}
*/
function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* @since 5.5
* Scale an image using the given new width and height

View File

@ -108,7 +108,7 @@ function imap_num_recent ($imap_stream) {}
*/
function imap_headers ($imap_stream) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Read the header of the message
* @link https://php.net/manual/en/function.imap-headerinfo.php

View File

@ -187,7 +187,7 @@ function mb_detect_order ($encoding = null) {}
*/
function mb_substitute_character ($substitute_character = null) {}
#[PhpStormStubsElementAvailable('5.3', '8.0')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Parse GET/POST/COOKIE data and set global variable
* @link https://php.net/manual/en/function.mb-parse-str.php
@ -848,7 +848,7 @@ function mb_convert_variables ($to_encoding, $from_encoding, &$var, &...$vars) {
#[Pure]
function mb_encode_numericentity ($string, array $map, $encoding = null, $hex = false) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Decode HTML numeric string reference to character
* @link https://php.net/manual/en/function.mb-decode-numericentity.php

View File

@ -217,7 +217,7 @@ function odbc_error ($connection_id = null) {}
*/
function odbc_errormsg ($connection_id = null) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Prepare and execute an SQL statement
* @link https://php.net/manual/en/function.odbc-exec.php

View File

@ -15,7 +15,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[Deprecated(since: '8.0')]
function openssl_pkey_free($key) { }
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Generates a new private key
* @link https://php.net/manual/en/function.openssl-pkey-new.php
@ -238,7 +238,7 @@ function openssl_spki_export_challenge (&$spki ) {}
*/
function openssl_spki_export (&$spki ) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Parse an X.509 certificate and return a resource identifier for
* it
@ -455,7 +455,7 @@ function openssl_pkcs12_export_to_file($certificate, $output_filename, $private_
*/
function openssl_pkcs12_read($pkcs12, array &$certificates, $passphrase) { }
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Generates a CSR
* @link https://php.net/manual/en/function.openssl-csr-new.php
@ -670,7 +670,7 @@ function openssl_csr_export($csr, &$output, $no_text = true) { }
*/
function openssl_csr_export_to_file($csr, $output_filename, $no_text = true) { }
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Sign a CSR with another certificate (or itself) and generate a certificate
* @link https://php.net/manual/en/function.openssl-csr-sign.php
@ -873,7 +873,7 @@ function openssl_sign($data, &$signature, $private_key, $algorithm = OPENSSL_ALG
*/
function openssl_verify($data, $signature, $public_key, $algorithm = OPENSSL_ALGO_SHA1) { }
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Seal (encrypt) data
* @link https://php.net/manual/en/function.openssl-seal.php
@ -909,7 +909,7 @@ function openssl_seal($data, &$sealed_data, array &$encrypted_keys, array $publi
{
}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Open sealed data
* @link https://php.net/manual/en/function.openssl-open.php

View File

@ -1235,7 +1235,7 @@ function pg_lo_write ($large_object, $data, $len = null) {}
*/
function pg_lo_read_all ($large_object) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Import a large object from file
* @link https://php.net/manual/en/function.pg-lo-import.php
@ -1287,7 +1287,7 @@ function pg_lo_import ($connection = null, $pathname, $object_id = null) {}
*/
function pg_lo_import ($connection, $pathname, $object_id = null) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Export a large object to file
* @link https://php.net/manual/en/function.pg-lo-export.php

View File

@ -31,7 +31,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
*/
function shmop_open ($key, $mode, $permissions, $size) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create or open shared memory block
* @link https://php.net/manual/en/function.shmop-open.php

View File

@ -22,7 +22,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
*/
function socket_addrinfo_lookup($host, $service, $hints) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 7 &gt;= 7.2.0)<br/>
* Get array with contents of getaddrinfo about the given hostname.
@ -54,7 +54,7 @@ function socket_addrinfo_lookup($host, $service, $hints) {}
*/
function socket_addrinfo_connect($addr) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a Socket resource, and connect it to the provided AddrInfo resource.<br/>
* The return value of this function may be used with the rest of the socket functions.
@ -81,7 +81,7 @@ function socket_addrinfo_connect($addr) {}
*/
function socket_addrinfo_bind($addr) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 7 &gt;= 7.2.0)<br/>
* Create a Socket resource, and bind it to the provided AddrInfo resource.<br/>
@ -296,7 +296,7 @@ function socket_select (array &$read, array &$write, array &$except, $tv_sec, $t
*/
function socket_create ($domain, $type, $protocol) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a socket (endpoint for communication)
* @link https://php.net/manual/en/function.socket-create.php
@ -442,7 +442,7 @@ function socket_create ($domain, $type, $protocol) {}
*/
function socket_export_stream($socket) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* @param resource $socket
* @return resource|false
@ -519,7 +519,7 @@ function socket_create_pair ($domain, $type, $protocol, array &$fd) {}
function socket_accept ($socket) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Accepts a connection on a socket
* @link https://php.net/manual/en/function.socket-accept.php
@ -546,7 +546,7 @@ function socket_accept ($socket) {}
*/
function socket_set_nonblock ($socket) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Sets nonblocking mode for file descriptor fd
* @link https://php.net/manual/en/function.socket-set-nonblock.php
@ -570,7 +570,7 @@ function socket_set_nonblock ($socket) {}
*/
function socket_set_block ($socket) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Sets blocking mode on a socket resource
* @link https://php.net/manual/en/function.socket-set-block.php
@ -612,7 +612,7 @@ function socket_set_block ($socket) {}
*/
function socket_listen ($socket, $backlog = 0) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Listens for a connection on a socket
* @link https://php.net/manual/en/function.socket-listen.php
@ -654,7 +654,7 @@ function socket_listen ($socket, $backlog = 0) {}
*/
function socket_close ($socket) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Closes a socket resource
* @link https://php.net/manual/en/function.socket-close.php
@ -694,7 +694,7 @@ function socket_close ($socket) {}
*/
function socket_write ($socket, $buffer, $length = 0) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Write to a socket
* @link https://php.net/manual/en/function.socket-write.php
@ -754,7 +754,7 @@ function socket_write ($socket, $buffer, $length = 0) {}
*/
function socket_read ($socket, $length, $type = PHP_BINARY_READ) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Reads a maximum of length bytes from a socket
* @link https://php.net/manual/en/function.socket-read.php
@ -1653,7 +1653,7 @@ function socket_clear_error ($socket = null) {}
*/
function socket_import_stream ($stream) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Import a stream
* @link https://php.net/manual/en/function.socket-import-stream.php
@ -1720,7 +1720,7 @@ function socket_wsaprotocol_info_export($socket, $target_pid) {}
function socket_wsaprotocol_info_import($info_id) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Imports a Socket from another Process
*

View File

@ -236,7 +236,7 @@ function get_browser ($user_agent = null, $return_array = null) {}
#[Pure]
function crypt ($string, $salt) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* One-way string encryption (hashing)
* @link https://php.net/manual/en/function.crypt.php

View File

@ -277,7 +277,7 @@ function array_unique(array $array, $flags = SORT_STRING) { }
#[Pure]
function array_intersect(array $array, ...$arrays) { }
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Computes the intersection of arrays
* @link https://php.net/manual/en/function.array-intersect.php
@ -459,7 +459,7 @@ function array_uintersect_uassoc(array $array1, array $array2, array $_ = null,
#[Pure]
function array_diff(array $array, ...$excludes) { }
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Computes the difference of arrays
* @link https://php.net/manual/en/function.array-diff.php

View File

@ -16,7 +16,7 @@ use \JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
*/
function msg_get_queue ($key, $permissions = 0666) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create or attach to a message queue
* @link https://php.net/manual/en/function.msg-get-queue.php

View File

@ -26,7 +26,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
*/
function sem_get ($key, $max_acquire = 1, $permissions = 0666, $auto_release = 1) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Get a semaphore id
* @link https://php.net/manual/en/function.sem-get.php

View File

@ -22,7 +22,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
*/
function shm_attach ($key, $size = null, $permissions = 0666) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Creates or open a shared memory segment
* @link https://php.net/manual/en/function.shm-attach.php

View File

@ -26,7 +26,7 @@ use JetBrains\PhpStorm\Pure;
#[Pure]
function xml_parser_create ($encoding = null) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create an XML parser
* @link https://php.net/manual/en/function.xml-parser-create.php

View File

@ -433,7 +433,7 @@ function ob_gzhandler ($data, $flags) {}
#[Pure]
function deflate_init ($encoding, $options = array()) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Initialize an incremental deflate context
* @link https://php.net/manual/en/function.deflate-init.php
@ -506,7 +506,7 @@ function deflate_add ($context, $data, $flush_mode = ZLIB_SYNC_FLUSH) {}
#[Pure]
function inflate_init ($encoding, $options = array()) {}
#[PhpStormStubsElementAvailable('5.3','7.4')]
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Initialize an incremental inflate context
* @link https://php.net/manual/en/function.inflate-init.php