composer base packages updates

This commit is contained in:
Clemens Schwaighofer
2023-03-28 11:51:54 +09:00
parent c3b29ad0d7
commit 28909fdc03
174 changed files with 7527 additions and 5286 deletions
-11
View File
@@ -531,14 +531,3 @@ final class ReturnTypeWillChange
public function __construct() {}
}
#[Attribute(Attribute::TARGET_PARAMETER)]
final class SensitiveParameter
{
public function __construct() {}
}
#[Attribute(Attribute::TARGET_CLASS)]
final class AllowDynamicProperties
{
public function __construct() {}
}
+7
View File
@@ -240,6 +240,13 @@ class DatePeriod implements IteratorAggregate
*/
function get_headers(string $url, bool $associative = false, $context = null) : array|false {}
/**
* @psalm-pure
*
* @psalm-flow ($values) -> return
*/
function pack(string $format, mixed ...$values): string {}
final class CurlHandle
{
private function __construct()
+12
View File
@@ -33,4 +33,16 @@ namespace {
/** @psalm-return (Start is string ? Iterator<int, DateTime> : Iterator<int, Start>) */
public function getIterator(): Iterator {}
}
#[Attribute(Attribute::TARGET_PARAMETER)]
final class SensitiveParameter
{
public function __construct() {}
}
#[Attribute(Attribute::TARGET_CLASS)]
final class AllowDynamicProperties
{
public function __construct() {}
}
}
+49 -2
View File
@@ -19,9 +19,10 @@ namespace {
}
/**
* Note: Official docs say this could return `null`, but it throws exceptions instead.
* @param \FFI\CType|string $type
*/
public static function new($type, bool $owned = true, bool $persistent = false): ?\FFI\CData
public static function new($type, bool $owned = true, bool $persistent = false): \FFI\CData
{
}
@@ -106,6 +107,25 @@ namespace {
public static function isNull(\FFI\CData $ptr): bool
{
}
public function __call(...$values)
{
}
/**
* @param mixed $value
* @return mixed $value
*/
public function __set(string $key, $value)
{
}
/**
* @return string|int|float|\FFI\CData|null
*/
public function __get(string $key)
{
}
}
}
@@ -115,9 +135,36 @@ namespace FFI {
/**
* @since 7.4.0
*/
final class CData
final class CData implements \Countable, \ArrayAccess, \Countable, \Traversable
{
/**
* @return bool
*/
public function offsetExists($offset)
{
}
/**
* @return mixed|null
*/
public function offsetGet($offset)
{
}
/**
* @param mixed|null $value
* @return void
*/
public function offsetSet($offset, $value)
{
}
/**
* @return void
*/
public function offsetUnset($offset)
{
}
}
/**
+9
View File
@@ -0,0 +1,9 @@
<?php
/**
* @param resource $connection
* @param 0|1 $value
*
* @return (func_num_args() > 1 ? bool : (0|1))
*/
function db2_autocommit($connection, int $value = null): int|bool {}