"ezyang/htmlpurifier": "^4.16",
"guzzlehttp/guzzle": "^7.5",
"guzzlehttp/psr7": "^2.4.4",
- "laminas/laminas-diactoros": "^2.24",
+ "laminas/laminas-diactoros": "^2.25",
"laminas/laminas-httphandlerrunner": "^2.5",
"laminas/laminas-progressbar": "^2.11",
"paragonie/constant_time_encoding": "^2.6.3",
"pelago/emogrifier": "^7.0.0",
"psr/clock": "^1.0",
"psr/event-dispatcher": "^1.0",
- "psr/http-message": "^1.0.1",
+ "psr/http-message": "^1.1.0",
"psr/http-server-handler": "^1.0.1",
"psr/http-server-middleware": "^1.0.1",
"psr/log": "^3.0",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "4911991e9bda1b201db48af57cfdbb38",
+ "content-hash": "377e92279621e76f6a9be59974e3bf7d",
"packages": [
{
"name": "cuyz/valinor",
},
{
"name": "laminas/laminas-diactoros",
- "version": "2.24.0",
+ "version": "2.25.0",
"source": {
"type": "git",
"url": "https://github.com/laminas/laminas-diactoros.git",
- "reference": "6028af6c3b5ced4d063a680d2483cce67578b902"
+ "reference": "0e9dd2516460be1a9c26ccdf9091ef293a1c3c6f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/6028af6c3b5ced4d063a680d2483cce67578b902",
- "reference": "6028af6c3b5ced4d063a680d2483cce67578b902",
+ "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/0e9dd2516460be1a9c26ccdf9091ef293a1c3c6f",
+ "reference": "0e9dd2516460be1a9c26ccdf9091ef293a1c3c6f",
"shasum": ""
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"psr/http-factory": "^1.0",
- "psr/http-message": "^1.0"
+ "psr/http-message": "^1.1"
},
"conflict": {
"zendframework/zend-diactoros": "*"
"ext-gd": "*",
"ext-libxml": "*",
"http-interop/http-factory-tests": "^0.9.0",
- "laminas/laminas-coding-standard": "^2.4.0",
+ "laminas/laminas-coding-standard": "^2.5",
"php-http/psr7-integration-tests": "^1.2",
- "phpunit/phpunit": "^9.5.27",
+ "phpunit/phpunit": "^9.5.28",
"psalm/plugin-phpunit": "^0.18.4",
- "vimeo/psalm": "^5.4"
+ "vimeo/psalm": "^5.6"
},
"type": "library",
"extra": {
"type": "community_bridge"
}
],
- "time": "2022-12-20T12:22:40+00:00"
+ "time": "2023-04-06T19:01:57+00:00"
},
{
"name": "laminas/laminas-httphandlerrunner",
},
{
"name": "laminas/laminas-diactoros",
- "version": "2.24.0",
- "version_normalized": "2.24.0.0",
+ "version": "2.25.0",
+ "version_normalized": "2.25.0.0",
"source": {
"type": "git",
"url": "https://github.com/laminas/laminas-diactoros.git",
- "reference": "6028af6c3b5ced4d063a680d2483cce67578b902"
+ "reference": "0e9dd2516460be1a9c26ccdf9091ef293a1c3c6f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/6028af6c3b5ced4d063a680d2483cce67578b902",
- "reference": "6028af6c3b5ced4d063a680d2483cce67578b902",
+ "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/0e9dd2516460be1a9c26ccdf9091ef293a1c3c6f",
+ "reference": "0e9dd2516460be1a9c26ccdf9091ef293a1c3c6f",
"shasum": ""
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"psr/http-factory": "^1.0",
- "psr/http-message": "^1.0"
+ "psr/http-message": "^1.1"
},
"conflict": {
"zendframework/zend-diactoros": "*"
"ext-gd": "*",
"ext-libxml": "*",
"http-interop/http-factory-tests": "^0.9.0",
- "laminas/laminas-coding-standard": "^2.4.0",
+ "laminas/laminas-coding-standard": "^2.5",
"php-http/psr7-integration-tests": "^1.2",
- "phpunit/phpunit": "^9.5.27",
+ "phpunit/phpunit": "^9.5.28",
"psalm/plugin-phpunit": "^0.18.4",
- "vimeo/psalm": "^5.4"
+ "vimeo/psalm": "^5.6"
},
- "time": "2022-12-20T12:22:40+00:00",
+ "time": "2023-04-06T19:01:57+00:00",
"type": "library",
"extra": {
"laminas": {
'dev_requirement' => false,
),
'laminas/laminas-diactoros' => array(
- 'pretty_version' => '2.24.0',
- 'version' => '2.24.0.0',
- 'reference' => '6028af6c3b5ced4d063a680d2483cce67578b902',
+ 'pretty_version' => '2.25.0',
+ 'version' => '2.25.0.0',
+ 'reference' => '0e9dd2516460be1a9c26ccdf9091ef293a1c3c6f',
'type' => 'library',
'install_path' => __DIR__ . '/../laminas/laminas-diactoros',
'aliases' => array(),
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"psr/http-factory": "^1.0",
- "psr/http-message": "^1.0"
+ "psr/http-message": "^1.1"
},
"require-dev": {
"ext-curl": "*",
"ext-gd": "*",
"ext-libxml": "*",
"http-interop/http-factory-tests": "^0.9.0",
- "laminas/laminas-coding-standard": "^2.4.0",
+ "laminas/laminas-coding-standard": "^2.5",
"php-http/psr7-integration-tests": "^1.2",
- "phpunit/phpunit": "^9.5.27",
+ "phpunit/phpunit": "^9.5.28",
"psalm/plugin-phpunit": "^0.18.4",
- "vimeo/psalm": "^5.4"
+ "vimeo/psalm": "^5.6"
},
"provide": {
"psr/http-factory-implementation": "1.0",
use Laminas\Diactoros\Exception\InvalidProxyAddressException;
use Psr\Http\Message\ServerRequestInterface;
+use function assert;
+use function count;
use function explode;
use function filter_var;
use function in_array;
$address = $cidr;
$mask = null;
if (str_contains($cidr, '/')) {
- [$address, $mask] = explode('/', $cidr, 2);
+ $parts = explode('/', $cidr, 2);
+ assert(count($parts) >= 2);
+ [$address, $mask] = $parts;
$mask = (int) $mask;
}
namespace Laminas\Diactoros\ServerRequestFilter;
+use function assert;
+use function count;
use function explode;
use function inet_pton;
use function intval;
$subnet = $cidr;
if (str_contains($cidr, '/')) {
- [$subnet, $mask] = explode('/', $cidr, 2);
+ $parts = explode('/', $cidr, 2);
+ assert(count($parts) >= 2);
+ [$subnet, $mask] = $parts;
$mask = (int) $mask;
}
$subnet = $cidr;
if (str_contains($cidr, '/')) {
- [$subnet, $mask] = explode('/', $cidr, 2);
+ $parts = explode('/', $cidr, 2);
+ assert(count($parts) >= 2);
+ [$subnet, $mask] = $parts;
$mask = (int) $mask;
}
/** @var resource|null */
protected $resource;
- /** @var string|resource */
+ /** @var string|object|resource|null */
protected $stream;
/**
- * @param string|resource $stream
+ * @param string|object|resource $stream
* @param string $mode Mode with which to open stream
* @throws Exception\InvalidArgumentException
*/
/**
* Attach a new stream/resource to the instance.
*
- * @param string|resource $resource
+ * @param string|object|resource $resource
* @throws Exception\InvalidArgumentException For stream identifier that cannot be cast to a resource.
* @throws Exception\InvalidArgumentException For non-resource stream.
*/
/**
* Set the internal stream resource.
*
- * @param string|resource $stream String stream target or stream resource.
+ * @param string|object|resource $stream String stream target or stream resource.
* @param string $mode Resource mode for stream target.
* @throws Exception\InvalidArgumentException For invalid streams or resources.
*/
use function array_change_key_case;
use function array_key_exists;
+use function assert;
+use function count;
use function explode;
use function gettype;
use function implode;
$fragment = '';
if (str_contains($path, '#')) {
- [$path, $fragment] = explode('#', $path, 2);
+ $parts = explode('#', $path, 2);
+ assert(count($parts) >= 2);
+ [$path, $fragment] = $parts;
}
return $uri
use function array_change_key_case;
use function array_key_exists;
+use function assert;
+use function count;
use function explode;
use function gettype;
use function implode;
// URI fragment
$fragment = '';
if (str_contains($path, '#')) {
- [$path, $fragment] = explode('#', $path, 2);
+ $parts = explode('#', $path, 2);
+ assert(count($parts) >= 2);
+ [$path, $fragment] = $parts;
}
return $uri