Updated dependencies packages to be compatible with php 8.4

This commit is contained in:
Abdulmohsen B. A. A.
2024-12-25 22:39:37 +03:00
parent 3c0a5764b2
commit 14e99e2e8a
3 changed files with 116 additions and 118 deletions

View File

@@ -41,8 +41,8 @@
"nyholm/psr7-server": "^1.0.2",
"dragonmantank/cron-expression": "^3.3.2",
"halaxa/json-machine": "^1.1.1",
"league/route": "^5.1.2",
"psy/psysh": "^0.11.22",
"league/route": "^6.2.0",
"psy/psysh": "^0.12.7",
"symfony/event-dispatcher": "^6.1.4",
"ramsey/uuid": "^4.5.1"
},

228
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e12713b2bdb612022062691d0e71db4b",
"content-hash": "bfbba6ee0a20728b8e8edf1cb2065b19",
"packages": [
{
"name": "brick/math",
@@ -193,6 +193,67 @@
],
"time": "2024-11-24T12:48:58+00:00"
},
{
"name": "laravel/serializable-closure",
"version": "v2.0.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/serializable-closure.git",
"reference": "613b2d4998f85564d40497e05e89cb6d9bd1cbe8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/613b2d4998f85564d40497e05e89cb6d9bd1cbe8",
"reference": "613b2d4998f85564d40497e05e89cb6d9bd1cbe8",
"shasum": ""
},
"require": {
"php": "^8.1"
},
"require-dev": {
"illuminate/support": "^10.0|^11.0",
"nesbot/carbon": "^2.67|^3.0",
"pestphp/pest": "^2.36",
"phpstan/phpstan": "^2.0",
"symfony/var-dumper": "^6.2.0|^7.0.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"autoload": {
"psr-4": {
"Laravel\\SerializableClosure\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylor@laravel.com"
},
{
"name": "Nuno Maduro",
"email": "nuno@laravel.com"
}
],
"description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.",
"keywords": [
"closure",
"laravel",
"serializable"
],
"support": {
"issues": "https://github.com/laravel/serializable-closure/issues",
"source": "https://github.com/laravel/serializable-closure"
},
"time": "2024-12-16T15:26:28+00:00"
},
{
"name": "league/container",
"version": "4.2.4",
@@ -277,41 +338,41 @@
},
{
"name": "league/route",
"version": "5.1.2",
"version": "6.2.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/route.git",
"reference": "adf9b961dc5ffdbcffb2b8d7963c7978f2794c92"
"reference": "38775ed32d49ff1ce98d88adaa06a8d66b923436"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/route/zipball/adf9b961dc5ffdbcffb2b8d7963c7978f2794c92",
"reference": "adf9b961dc5ffdbcffb2b8d7963c7978f2794c92",
"url": "https://api.github.com/repos/thephpleague/route/zipball/38775ed32d49ff1ce98d88adaa06a8d66b923436",
"reference": "38775ed32d49ff1ce98d88adaa06a8d66b923436",
"shasum": ""
},
"require": {
"laravel/serializable-closure": "^2.0.0",
"nikic/fast-route": "^1.3",
"opis/closure": "^3.5.5",
"php": "^7.2 || ^8.0",
"psr/container": "^1.0|^2.0",
"php": "^8.1",
"psr/container": "^2.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0.1",
"psr/http-message": "^2.0",
"psr/http-server-handler": "^1.0.1",
"psr/http-server-middleware": "^1.0.1",
"psr/simple-cache": "^1.0"
"psr/simple-cache": "^3.0"
},
"replace": {
"orno/http": "~1.0",
"orno/route": "~1.0"
},
"require-dev": {
"laminas/laminas-diactoros": "^2.3",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpunit/phpunit": "^8.5",
"roave/security-advisories": "dev-master",
"laminas/laminas-diactoros": "^3.5",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.2",
"roave/security-advisories": "dev-latest",
"scrutinizer/ocular": "^1.8",
"squizlabs/php_codesniffer": "^3.5"
"squizlabs/php_codesniffer": "^3.7"
},
"type": "library",
"extra": {
@@ -321,7 +382,8 @@
"dev-3.x": "3.x-dev",
"dev-4.x": "4.x-dev",
"dev-5.x": "5.x-dev",
"dev-master": "5.x-dev"
"dev-6.x": "6.x-dev",
"dev-master": "6.x-dev"
}
},
"autoload": {
@@ -336,7 +398,7 @@
"authors": [
{
"name": "Phil Bennett",
"email": "philipobenito@gmail.com",
"email": "mail@philbennett.co.uk",
"role": "Developer"
}
],
@@ -354,7 +416,7 @@
],
"support": {
"issues": "https://github.com/thephpleague/route/issues",
"source": "https://github.com/thephpleague/route/tree/5.1.2"
"source": "https://github.com/thephpleague/route/tree/6.2.0"
},
"funding": [
{
@@ -362,7 +424,7 @@
"type": "github"
}
],
"time": "2021-07-30T08:33:09+00:00"
"time": "2024-11-25T08:10:15+00:00"
},
{
"name": "monolog/monolog",
@@ -519,25 +581,27 @@
},
{
"name": "nikic/php-parser",
"version": "v4.19.4",
"version": "v5.3.1",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2"
"reference": "8eea230464783aa9671db8eea6f8c6ac5285794b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/715f4d25e225bc47b293a8b997fe6ce99bf987d2",
"reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b",
"reference": "8eea230464783aa9671db8eea6f8c6ac5285794b",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-json": "*",
"ext-tokenizer": "*",
"php": ">=7.1"
"php": ">=7.4"
},
"require-dev": {
"ircmaxell/php-yacc": "^0.0.7",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
"phpunit/phpunit": "^9.0"
},
"bin": [
"bin/php-parse"
@@ -545,7 +609,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.9-dev"
"dev-master": "5.0-dev"
}
},
"autoload": {
@@ -569,9 +633,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.19.4"
"source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1"
},
"time": "2024-09-29T15:01:53+00:00"
"time": "2024-10-08T18:51:32+00:00"
},
{
"name": "nyholm/psr7",
@@ -717,71 +781,6 @@
],
"time": "2023-11-08T09:30:43+00:00"
},
{
"name": "opis/closure",
"version": "3.6.3",
"source": {
"type": "git",
"url": "https://github.com/opis/closure.git",
"reference": "3d81e4309d2a927abbe66df935f4bb60082805ad"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad",
"reference": "3d81e4309d2a927abbe66df935f4bb60082805ad",
"shasum": ""
},
"require": {
"php": "^5.4 || ^7.0 || ^8.0"
},
"require-dev": {
"jeremeamia/superclosure": "^2.0",
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.6.x-dev"
}
},
"autoload": {
"files": [
"functions.php"
],
"psr-4": {
"Opis\\Closure\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Marius Sarca",
"email": "marius.sarca@gmail.com"
},
{
"name": "Sorin Sarca",
"email": "sarca_sorin@hotmail.com"
}
],
"description": "A library that can be used to serialize closures (anonymous functions) and arbitrary objects.",
"homepage": "https://opis.io/closure",
"keywords": [
"anonymous functions",
"closure",
"function",
"serializable",
"serialization",
"serialize"
],
"support": {
"issues": "https://github.com/opis/closure/issues",
"source": "https://github.com/opis/closure/tree/3.6.3"
},
"time": "2022-01-27T09:35:39+00:00"
},
{
"name": "psr/cache",
"version": "3.0.0",
@@ -1043,16 +1042,16 @@
},
{
"name": "psr/http-message",
"version": "1.1",
"version": "2.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
"reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71",
"reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71",
"shasum": ""
},
"require": {
@@ -1061,7 +1060,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
"dev-master": "2.0.x-dev"
}
},
"autoload": {
@@ -1076,7 +1075,7 @@
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
@@ -1090,9 +1089,9 @@
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/1.1"
"source": "https://github.com/php-fig/http-message/tree/2.0"
},
"time": "2023-04-04T09:50:52+00:00"
"time": "2023-04-04T09:54:51+00:00"
},
{
"name": "psr/http-server-handler",
@@ -1310,25 +1309,25 @@
},
{
"name": "psy/psysh",
"version": "v0.11.22",
"version": "v0.12.7",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
"reference": "128fa1b608be651999ed9789c95e6e2a31b5802b"
"reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/128fa1b608be651999ed9789c95e6e2a31b5802b",
"reference": "128fa1b608be651999ed9789c95e6e2a31b5802b",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/d73fa3c74918ef4522bb8a3bf9cab39161c4b57c",
"reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-tokenizer": "*",
"nikic/php-parser": "^4.0 || ^3.1",
"php": "^8.0 || ^7.0.8",
"symfony/console": "^6.0 || ^5.0 || ^4.0 || ^3.4",
"symfony/var-dumper": "^6.0 || ^5.0 || ^4.0 || ^3.4"
"nikic/php-parser": "^5.0 || ^4.0",
"php": "^8.0 || ^7.4",
"symfony/console": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4",
"symfony/var-dumper": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4"
},
"conflict": {
"symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4"
@@ -1339,8 +1338,7 @@
"suggest": {
"ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)",
"ext-pdo-sqlite": "The doc command requires SQLite to work.",
"ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.",
"ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history."
"ext-posix": "If you have PCNTL, you'll want the POSIX extension as well."
},
"bin": [
"bin/psysh"
@@ -1352,7 +1350,7 @@
"forward-command": false
},
"branch-alias": {
"dev-0.11": "0.11.x-dev"
"dev-main": "0.12.x-dev"
}
},
"autoload": {
@@ -1384,9 +1382,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.11.22"
"source": "https://github.com/bobthecow/psysh/tree/v0.12.7"
},
"time": "2023-10-14T21:56:36+00:00"
"time": "2024-12-10T01:58:33+00:00"
},
{
"name": "ramsey/collection",

View File

@@ -12,7 +12,7 @@ use RuntimeException;
class StreamedBodyTest extends TestCase
{
private function getStream(Closure $fn = null, bool $isReadable = true): StreamedBody
private function getStream(Closure|null $fn = null, bool $isReadable = true): StreamedBody
{
return new StreamedBody($fn ?? fn() => 'test', isReadable: $isReadable);
}