csfixer + format function
This commit is contained in:
parent
59872a9e05
commit
b4e2510fcd
|
@ -800,20 +800,20 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
|
|||
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] &...$vars
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Write to file
|
||||
* @link https://php.net/manual/en/splfileobject.fwrite.php
|
||||
* @param string $data <p>
|
||||
* The string to be written to the file.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* If the <i>length</i> argument is given, writing will
|
||||
* stop after <i>length</i> bytes have been written or
|
||||
* the end of <i>string</i> is reached, whichever comes
|
||||
* first.
|
||||
* </p>
|
||||
* @return int|false the number of bytes written, or 0 (false since 7.4) on error.
|
||||
*/
|
||||
/**
|
||||
* Write to file
|
||||
* @link https://php.net/manual/en/splfileobject.fwrite.php
|
||||
* @param string $data <p>
|
||||
* The string to be written to the file.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* If the <i>length</i> argument is given, writing will
|
||||
* stop after <i>length</i> bytes have been written or
|
||||
* the end of <i>string</i> is reached, whichever comes
|
||||
* first.
|
||||
* </p>
|
||||
* @return int|false the number of bytes written, or 0 (false since 7.4) on error.
|
||||
*/
|
||||
#[LanguageLevelTypeAware(['7.4' => 'int|false'], default: 'int')]
|
||||
public function fwrite(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data,
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"require-dev": {
|
||||
"php": "^8.0",
|
||||
"nikic/php-parser": "dev-master",
|
||||
"nikic/php-parser": "@stable",
|
||||
"phpdocumentor/reflection-docblock": "@stable",
|
||||
"phpunit/phpunit": "@stable",
|
||||
"friendsofphp/php-cs-fixer": "@stable"
|
||||
|
|
|
@ -2160,7 +2160,7 @@ function imagexbm(GdImage $image, ?string $filename, ?int $foreground_color = nu
|
|||
*/
|
||||
function imagefilter(
|
||||
GdImage $image,
|
||||
int $filter,
|
||||
int $filter,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $arg2 = null,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $arg3 = null,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $arg4 = null,
|
||||
|
|
7611
intl/intl.php
7611
intl/intl.php
File diff suppressed because it is too large
Load Diff
|
@ -252,7 +252,8 @@ function ldap_read(
|
|||
int $sizelimit = -1,
|
||||
int $timelimit = -1,
|
||||
int $deref,
|
||||
#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
|
||||
#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Single-level search
|
||||
|
|
|
@ -254,8 +254,9 @@ namespace PHPSTORM_META {
|
|||
expectedArguments(\mysqli_stmt::attr_set(), 0, argumentsSet("mysqliAttributesSet"));
|
||||
expectedArguments(\mysqli_stmt_attr_set(), 1, argumentsSet("mysqliAttributesSet"));
|
||||
|
||||
expectedArguments(\ob_start(), 2, \PHP_OUTPUT_HANDLER_CLEANABLE | \PHP_OUTPUT_HANDLER_FLUSHABLE | PHP_OUTPUT_HANDLER_REMOVABLE, PHP_OUTPUT_HANDLER_STDFLAGS);
|
||||
expectedArguments(\ob_start(), 2, \PHP_OUTPUT_HANDLER_CLEANABLE | \PHP_OUTPUT_HANDLER_FLUSHABLE | PHP_OUTPUT_HANDLER_REMOVABLE, PHP_OUTPUT_HANDLER_STDFLAGS);
|
||||
expectedArguments(\OCI_Lob::flush(), 0, OCI_LOB_BUFFER_FREE);
|
||||
expectedArguments(\OCILob::flush(), 0, OCI_LOB_BUFFER_FREE);
|
||||
expectedArguments(\oci_execute(), 1, OCI_COMMIT_ON_SUCCESS,OCI_DESCRIBE_ONLY,OCI_NO_AUTO_COMMIT);
|
||||
expectedArguments(\odbc_binmode(), 1, ODBC_BINMODE_PASSTHRU,ODBC_BINMODE_RETURN,ODBC_BINMODE_CONVERT);
|
||||
expectedArguments(\openlog(), 1, LOG_CONS|LOG_NDELAY|LOG_ODELAY|LOG_PERROR|LOG_PID);
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
namespace MongoDB {}
|
||||
|
||||
namespace MongoDB\Driver {
|
||||
|
||||
use MongoDB\BSON\Serializable;
|
||||
use MongoDB\Driver\Exception\AuthenticationException;
|
||||
use MongoDB\Driver\Exception\BulkWriteException;
|
||||
|
@ -31,7 +30,7 @@ namespace MongoDB\Driver {
|
|||
use MongoDB\Driver\Monitoring\Subscriber;
|
||||
use Traversable;
|
||||
|
||||
/**
|
||||
/**
|
||||
* The MongoDB\Driver\Manager is the main entry point to the extension. It is responsible for maintaining connections to MongoDB (be it standalone server, replica set, or sharded cluster).
|
||||
* No connection to MongoDB is made upon instantiating the Manager. This means the MongoDB\Driver\Manager can always be constructed, even though one or more MongoDB servers are down.
|
||||
* Any write or query can throw connection exceptions as connections are created lazily. A MongoDB server may also become unavailable during the life time of the script. It is therefore important that all actions on the Manager to be wrapped in try/catch statements.
|
||||
|
@ -1386,11 +1385,10 @@ namespace MongoDB\Driver {
|
|||
}
|
||||
|
||||
namespace MongoDB\Driver\Exception {
|
||||
|
||||
use MongoDB\Driver\WriteResult;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Thrown when the driver encounters a runtime error (e.g. internal error from » libmongoc).
|
||||
* @link https://php.net/manual/en/class.mongodb-driver-exception-runtimeexception.php
|
||||
* @since 1.0.0
|
||||
|
@ -1838,7 +1836,6 @@ namespace MongoDB\Driver\Monitoring {
|
|||
*/
|
||||
|
||||
namespace MongoDB\BSON {
|
||||
|
||||
use DateTime;
|
||||
use DateTimeInterface;
|
||||
use JetBrains\PhpStorm\Deprecated;
|
||||
|
@ -1846,7 +1843,7 @@ namespace MongoDB\BSON {
|
|||
use MongoDB\Driver\Exception\InvalidArgumentException;
|
||||
use MongoDB\Driver\Exception\UnexpectedValueException;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Converts a BSON string to its Canonical Extended JSON representation.
|
||||
* The canonical format prefers type fidelity at the expense of concise output and is most suited for producing
|
||||
* output that can be converted back to BSON without any loss of type information
|
||||
|
|
|
@ -1914,8 +1914,8 @@ function mysqli_get_charset(mysqli $mysql): ?object {}
|
|||
*/
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '?string')]
|
||||
function mysqli_get_client_info(
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.1')] mysqli $mysql,
|
||||
#[PhpStormStubsElementAvailable(from: '8.0')] ?mysqli $mysql = null
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.1')] mysqli $mysql,
|
||||
#[PhpStormStubsElementAvailable(from: '8.0')] ?mysqli $mysql = null
|
||||
) {}
|
||||
|
||||
/**
|
||||
|
@ -2665,7 +2665,8 @@ function mysqli_client_encoding(mysqli $mysql): string {}
|
|||
function mysqli_escape_string(
|
||||
mysqli $mysql,
|
||||
string $string,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $resultmode = null): string {}
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $resultmode = null
|
||||
): string {}
|
||||
|
||||
/**
|
||||
* Alias for <b>mysqli_stmt_fetch</b>
|
||||
|
|
|
@ -303,10 +303,10 @@ class SQLite3
|
|||
* @return resource|false Returns a stream resource, or FALSE on failure.
|
||||
*/
|
||||
public function openBlob(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')]$table,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $column,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $rowid,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $database = 'main',
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $table,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $column,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $rowid,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $database = 'main',
|
||||
#[PhpStormStubsElementAvailable(from: '7.2')] int $flags = SQLITE3_OPEN_READONLY
|
||||
) {}
|
||||
|
||||
|
|
|
@ -543,7 +543,9 @@ function array_udiff(
|
|||
* @meta
|
||||
*/
|
||||
#[Pure]
|
||||
function array_diff_assoc(array $array, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $arrays, array ...$arrays
|
||||
function array_diff_assoc(
|
||||
array $array,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $arrays, array ...$arrays
|
||||
): array {}
|
||||
|
||||
/**
|
||||
|
@ -727,7 +729,9 @@ function array_filter(array $array, ?callable $callback, int $mode = 0): array {
|
|||
* after applying the callback function to each one.
|
||||
* @meta
|
||||
*/
|
||||
function array_map(?callable $callback, #[PhpStormStubsElementAvailable(from: '8.0')] array $array,
|
||||
function array_map(
|
||||
?callable $callback,
|
||||
#[PhpStormStubsElementAvailable(from: '8.0')] array $array,
|
||||
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $arrays,
|
||||
array ...$arrays
|
||||
): array {}
|
||||
|
|
|
@ -94,12 +94,7 @@ function xdiff_file_patch_binary(string $file, string $patch, string $dest): boo
|
|||
* @return bool|string false if an internal error happened, string with rejected chunks if patch couldn't be applied
|
||||
* or true if patch has been successfully applied.
|
||||
*/
|
||||
function xdiff_file_patch(
|
||||
string $file,
|
||||
string $patch,
|
||||
string $dest,
|
||||
#[ExpectedValues([XDIFF_PATCH_NORMAL|XDIFF_PATCH_REVERSE|XDIFF_PATCH_IGNORESPACE])] int $flags = XDIFF_PATCH_NORMAL
|
||||
) {}
|
||||
function xdiff_file_patch(string $file, string $patch, string $dest, #[ExpectedValues([XDIFF_PATCH_NORMAL|XDIFF_PATCH_REVERSE|XDIFF_PATCH_IGNORESPACE])] int $flags = XDIFF_PATCH_NORMAL) {}
|
||||
|
||||
/**
|
||||
* Make binary diff of two files using the Rabin's polynomial fingerprinting algorithm
|
||||
|
@ -191,12 +186,7 @@ function xdiff_string_patch_binary(string $str, string $patch) {}
|
|||
* @param ?string $error If provided then rejected parts are stored inside this variable.
|
||||
* @return string|false the patched string, or false on error.
|
||||
*/
|
||||
function xdiff_string_patch(
|
||||
string $str,
|
||||
string $patch,
|
||||
#[ExpectedValues([XDIFF_PATCH_NORMAL|XDIFF_PATCH_REVERSE|XDIFF_PATCH_IGNORESPACE])] ?int $flags,
|
||||
?string &$error
|
||||
) {}
|
||||
function xdiff_string_patch(string $str, string $patch, #[ExpectedValues([XDIFF_PATCH_NORMAL|XDIFF_PATCH_REVERSE|XDIFF_PATCH_IGNORESPACE])] ?int $flags, ?string &$error) {}
|
||||
|
||||
/**
|
||||
* Make binary diff of two strings using the Rabin's polynomial fingerprinting algorithm
|
||||
|
|
Loading…
Reference in New Issue