8.2 beta 2 changes

This commit is contained in:
DmitryTronin 2022-08-05 20:29:49 +02:00
parent 0c63ef09fd
commit 8a4456b382
7 changed files with 27 additions and 4 deletions

View File

@ -7075,6 +7075,7 @@ const CONSTANTS = array (
'DATE_ATOM' => 'date/date_d.php',
'DATE_COOKIE' => 'date/date_d.php',
'DATE_ISO8601' => 'date/date_d.php',
'DATE_ISO8601_EXPANDED' => 'date/date_d.php',
'DATE_RFC1036' => 'date/date_d.php',
'DATE_RFC1123' => 'date/date_d.php',
'DATE_RFC2822' => 'date/date_d.php',
@ -7112,6 +7113,8 @@ const CONSTANTS = array (
'DB2_PASSTHRU' => 'ibm_db2/ibm_db2.php',
'DB2_SCROLLABLE' => 'ibm_db2/ibm_db2.php',
'DB2_XML' => 'ibm_db2/ibm_db2.php',
'DBA_LMDB_NO_SUB_DIR' => 'dba/dba.php',
'DBA_LMDB_USE_SUB_DIR' => 'dba/dba.php',
'DEBUG_BACKTRACE_IGNORE_ARGS' => 'Core/Core_d.php',
'DEBUG_BACKTRACE_PROVIDE_OBJECT' => 'Core/Core_d.php',
'DEFAULT_INCLUDE_PATH' => 'Core/Core_d.php',

View File

@ -449,6 +449,11 @@ class DateTime implements DateTimeInterface
*/
public const ISO8601 = 'Y-m-d\TH:i:sO';
/**
* @since 8.2
*/
public const ISO8601_EXPANDED = DATE_ISO8601_EXPANDED;
/**
* @removed 7.2
*/

View File

@ -11,6 +11,8 @@ define('DATE_COOKIE', "l, d-M-Y H:i:s T");
* @deprecated
*/
define('DATE_ISO8601', "Y-m-d\TH:i:sO");
/** @since 8.2 */
define('DATE_ISO8601_EXPANDED', "X-m-d\\TH:i:sP");
define('DATE_RFC822', "D, d M y H:i:s O");
define('DATE_RFC850', "l, d-M-y H:i:s T");
define('DATE_RFC1036', "D, d M y H:i:s O");

View File

@ -4,6 +4,12 @@
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
/** @since 8.2 */
const DBA_LMDB_USE_SUB_DIR = 0;
/** @since 8.2 */
const DBA_LMDB_NO_SUB_DIR = 0;
/**
* Open database
* @link https://php.net/manual/en/function.dba-open.php
@ -125,7 +131,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
function dba_open($path, $mode, $handler, ...$handler_params) {}
#[PhpStormStubsElementAvailable(from: '8.2')]
function dba_open(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0) {}
function dba_open(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
/**
* Open database persistently
@ -152,7 +158,7 @@ function dba_open(string $path, string $mode, ?string $handler = null, int $perm
function dba_popen($path, $mode, $handler, ...$handler_params) {}
#[PhpStormStubsElementAvailable(from: '8.2')]
function dba_popen(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0) {}
function dba_popen(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
/**
* Close a DBA database

View File

@ -5,6 +5,7 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\ExpectedValues as EV;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware as TypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable as ElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -2360,8 +2361,12 @@ class Transliterator
public const REVERSE = 1;
#[TypeAware(['8.1' => 'string'], default: '')]
#[PhpStormStubsElementAvailable(to: '8.1')]
public $id;
#[PhpStormStubsElementAvailable(from: '8.2')]
public readonly string $id;
/**
* (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
* Private constructor to deny instantiation

View File

@ -734,7 +734,7 @@ define('FPE_FLTOVF', 4);
/**
* @link https://php.net/manual/en/pcntl.constants.php
*/
define('FPE_FLTUND', 7);
define('FPE_FLTUND', 5);
/**
* @link https://php.net/manual/en/pcntl.constants.php

View File

@ -196,7 +196,9 @@ namespace Random
public function __construct(?Engine $engine = null) {}
public function getInt(int $min = UNKNOWN, int $max = UNKNOWN): int {}
public function nextInt(): int {}
public function getInt(int $min, int $max): int {}
public function getBytes(int $length): string {}