diff --git a/composer.json b/composer.json index 9a3bd51a62..3ceec3a3dc 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "scoper:update-deps": "./update-scoper-dependencies.sh", "post-install-cmd": [ "composer bin all install --ansi", - "vendor/bin/php-scoper add-prefix --force", + "@php -d xdebug.mode=off vendor/bin/php-scoper add-prefix --force", "@php .lib-vendor-organizer.php lib/Vendor/ OCA\\\\Tables\\\\Vendor", "cat .scoper-production-dependencies | uniq | xargs -I {} rm -Rf vendor/{} # Remove origins", "cat .scoper-production-dependencies | cut -d / -f1 | uniq | xargs -I {} rmdir vendor/{} || true # Remove empty directories", @@ -57,7 +57,7 @@ ], "post-update-cmd": [ "composer bin all update --ansi", - "vendor/bin/php-scoper add-prefix --force", + "@php -d xdebug.mode=off vendor/bin/php-scoper add-prefix --force", "@php .lib-vendor-organizer.php lib/Vendor/ OCA\\\\Tables\\\\Vendor", "cat .scoper-production-dependencies | uniq | xargs -I {} rm -Rf vendor/{} # Remove origins", "cat .scoper-production-dependencies | cut -d / -f1 | uniq | xargs -I {} rmdir vendor/{} || true # Remove empty directories", diff --git a/vendor-bin/php-scoper/composer.json b/vendor-bin/php-scoper/composer.json index d50a89b78f..85bc0e73a2 100644 --- a/vendor-bin/php-scoper/composer.json +++ b/vendor-bin/php-scoper/composer.json @@ -1,26 +1,16 @@ { "require": { - "humbug/php-scoper": "^0.18.7", + "humbug/php-scoper": "^0.18.20", "cweagans/composer-patches": "^2.0" }, "config": { "platform": { - "php": "8.1" + "php": "8.2" }, "allow-plugins": { "cweagans/composer-patches": true } }, "extra": { - "patches": { - "thecodingmachine/safe": { - "PHP 8.4 compatibility, patch 1": "patches/thecodingmachine_safe_464.patch", - "PHP 8.4 compatibility, patch 2": "patches/thecodingmachine_safe_466.patch", - "PHP 8.4 compatibility, patch 3": "patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch" - }, - "humbug/php-scoper": { - "PHP 8.5 compatibility, patch1": "patches/blizzz_php-scoper_1.patch" - } - } } } diff --git a/vendor-bin/php-scoper/composer.lock b/vendor-bin/php-scoper/composer.lock index df10b188e5..e95b372aee 100644 --- a/vendor-bin/php-scoper/composer.lock +++ b/vendor-bin/php-scoper/composer.lock @@ -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": "1851aa1c507135c6d713cba8a11f27f6", + "content-hash": "e8423649914575707bec2a9afc5aff6c", "packages": [ { "name": "cweagans/composer-configurable-plugin", @@ -131,44 +131,46 @@ }, { "name": "fidry/console", - "version": "0.5.5", + "version": "0.6.11", "source": { "type": "git", "url": "https://github.com/theofidry/console.git", - "reference": "bc1fe03f600c63f12ec0a39c6b746c1a1fb77bf7" + "reference": "bea8316beae874fc5b8be679d67dd3169c7e205f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/console/zipball/bc1fe03f600c63f12ec0a39c6b746c1a1fb77bf7", - "reference": "bc1fe03f600c63f12ec0a39c6b746c1a1fb77bf7", + "url": "https://api.github.com/repos/theofidry/console/zipball/bea8316beae874fc5b8be679d67dd3169c7e205f", + "reference": "bea8316beae874fc5b8be679d67dd3169c7e205f", "shasum": "" }, "require": { - "php": "^7.4.0 || ^8.0.0", - "symfony/console": "^4.4 || ^5.4 || ^6.1", - "symfony/event-dispatcher-contracts": "^1.0 || ^2.5 || ^3.0", - "symfony/service-contracts": "^1.0 || ^2.5 || ^3.0", - "thecodingmachine/safe": "^1.3 || ^2.0", + "php": "^8.2", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/console": "^6.4 || ^7.2", + "symfony/deprecation-contracts": "^3.4", + "symfony/event-dispatcher-contracts": "^2.5 || ^3.0", + "symfony/polyfill-php84": "^1.31", + "symfony/service-contracts": "^2.5 || ^3.0", + "thecodingmachine/safe": "^2.0 || ^3.0", "webmozart/assert": "^1.11" }, "conflict": { - "symfony/dependency-injection": "<5.3.0", - "symfony/framework-bundle": "<5.3.0", - "symfony/http-kernel": "<5.3.0" + "symfony/dependency-injection": "<6.4.0 || >=7.0.0 <7.2.0", + "symfony/framework-bundle": "<6.4.0 || >=7.0.0 <7.2.0", + "symfony/http-kernel": "<6.4.0 || >=7.0.0 <7.2.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4", - "composer/semver": "^3.3", - "ergebnis/composer-normalize": "^2.28", - "infection/infection": "^0.26", - "phpspec/prophecy-phpunit": "^2.0", - "phpunit/phpunit": "^9.4.3", - "symfony/dependency-injection": "^4.4 || ^5.4 || ^6.1", - "symfony/framework-bundle": "^4.4 || ^5.4 || ^6.1", - "symfony/http-kernel": "^4.4 || ^5.4 || ^6.1", - "symfony/phpunit-bridge": "^4.4.47 || ^5.4 || ^6.0", - "symfony/yaml": "^4.4 || ^5.4 || ^6.1", - "webmozarts/strict-phpunit": "^7.3" + "bamarni/composer-bin-plugin": "^1.8.2", + "composer/semver": "^3.3.2", + "ergebnis/composer-normalize": "^2.33", + "fidry/makefile": "^0.2.1 || ^1.0.0", + "infection/infection": "^0.28", + "phpunit/phpunit": "^10.2", + "symfony/dependency-injection": "^6.4 || ^7.2", + "symfony/flex": "^2.4.0", + "symfony/framework-bundle": "^6.4 || ^7.2", + "symfony/http-kernel": "^6.4 || ^7.2", + "symfony/yaml": "^6.4 || ^7.2" }, "type": "library", "extra": { @@ -203,7 +205,7 @@ ], "support": { "issues": "https://github.com/theofidry/console/issues", - "source": "https://github.com/theofidry/console/tree/0.5.5" + "source": "https://github.com/theofidry/console/tree/0.6.11" }, "funding": [ { @@ -211,7 +213,7 @@ "type": "github" } ], - "time": "2022-12-18T10:49:34+00:00" + "time": "2025-02-14T11:06:15+00:00" }, { "name": "fidry/filesystem", @@ -281,37 +283,40 @@ }, { "name": "humbug/php-scoper", - "version": "0.18.7", + "version": "0.18.20", "source": { "type": "git", "url": "https://github.com/humbug/php-scoper.git", - "reference": "9386a0af946f175d7a1ebfb68851bc2bb8ad7858" + "reference": "f1991b803eb84b534b8b2aa1b477c170d1b611e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/humbug/php-scoper/zipball/9386a0af946f175d7a1ebfb68851bc2bb8ad7858", - "reference": "9386a0af946f175d7a1ebfb68851bc2bb8ad7858", + "url": "https://api.github.com/repos/humbug/php-scoper/zipball/f1991b803eb84b534b8b2aa1b477c170d1b611e1", + "reference": "f1991b803eb84b534b8b2aa1b477c170d1b611e1", "shasum": "" }, "require": { - "fidry/console": "^0.5.0", + "fidry/console": "^0.6.10", "fidry/filesystem": "^1.1", - "jetbrains/phpstorm-stubs": "^v2022.2", - "nikic/php-parser": "^4.12", - "php": "^8.1", - "symfony/console": "^5.2 || ^6.0", - "symfony/filesystem": "^5.2 || ^6.0", - "symfony/finder": "^5.2 || ^6.0", - "thecodingmachine/safe": "^2.0" + "jetbrains/phpstorm-stubs": "^2026.2", + "nikic/php-parser": "^5.0", + "php": "^8.2", + "symfony/console": "^6.4 || ^7.4", + "symfony/filesystem": "^6.4 || ^7.4", + "symfony/finder": "^6.4 || ^7.4", + "symfony/polyfill-iconv": "^1.33", + "symfony/polyfill-mbstring": "^1.33", + "symfony/var-dumper": "^7.1", + "thecodingmachine/safe": "^3.0" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.1", "ergebnis/composer-normalize": "^2.28", "fidry/makefile": "^1.0", - "humbug/box": "^4.5.1", + "humbug/box": "^4.6.2", "phpspec/prophecy-phpunit": "^2.0", - "phpunit/phpunit": "^9.0", - "symfony/yaml": "^6.1" + "phpunit/phpunit": "^10.0 || ^11.0", + "symfony/yaml": "^6.4 || ^7.4" }, "bin": [ "bin/php-scoper" @@ -358,30 +363,29 @@ "description": "Prefixes all PHP namespaces in a file or directory.", "support": { "issues": "https://github.com/humbug/php-scoper/issues", - "source": "https://github.com/humbug/php-scoper/tree/0.18.7" + "source": "https://github.com/humbug/php-scoper/tree/0.18.20" }, - "time": "2023-11-04T18:01:12+00:00" + "time": "2026-10-08T08:21:05+00:00" }, { "name": "jetbrains/phpstorm-stubs", - "version": "v2022.3", + "version": "v2026.2", "source": { "type": "git", - "url": "https://github.com/JetBrains/phpstorm-stubs.git", - "reference": "6b568c153cea002dc6fad96285c3063d07cab18d" + "url": "https://github.com/JetBrains/phpstorm-stubs", + "reference": "709e512210784a7c0a677b3a89d35def844a59b9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JetBrains/phpstorm-stubs/zipball/6b568c153cea002dc6fad96285c3063d07cab18d", - "reference": "6b568c153cea002dc6fad96285c3063d07cab18d", + "url": "https://api.github.com/repos/JetBrains/phpstorm-stubs/zipball/709e512210784a7c0a677b3a89d35def844a59b9", + "reference": "709e512210784a7c0a677b3a89d35def844a59b9", "shasum": "" }, "require-dev": { - "friendsofphp/php-cs-fixer": "@stable", - "nikic/php-parser": "@stable", - "php": "^8.0", - "phpdocumentor/reflection-docblock": "@stable", - "phpunit/phpunit": "@stable" + "friendsofphp/php-cs-fixer": "^v3.86", + "nikic/php-parser": "^v5.6", + "phpdocumentor/reflection-docblock": "^5.6", + "phpunit/phpunit": "^12.3" }, "type": "library", "autoload": { @@ -405,37 +409,40 @@ "stubs", "type" ], - "support": { - "source": "https://github.com/JetBrains/phpstorm-stubs/tree/v2022.3" - }, - "time": "2022-10-17T09:21:37+00:00" + "time": "2026-06-12T13:19:10+00:00" }, { "name": "nikic/php-parser", - "version": "v4.19.5", + "version": "v5.9.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "51bd93cc741b7fc3d63d20b6bdcd99fdaa359837" + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/51bd93cc741b7fc3d63d20b6bdcd99fdaa359837", - "reference": "51bd93cc741b7fc3d63d20b6bdcd99fdaa359837", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/9e33da9553fe7786f0962b35f4e4ecf01be89def", + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def", "shasum": "" }, "require": { + "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" ], "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, "autoload": { "psr-4": { "PhpParser\\": "lib/PhpParser" @@ -457,9 +464,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.5" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.9.0" }, - "time": "2025-12-06T11:45:25+00:00" + "time": "2026-09-13T18:51:52+00:00" }, { "name": "psr/container", @@ -564,49 +571,99 @@ }, "time": "2019-01-08T18:20:26+00:00" }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, { "name": "symfony/console", - "version": "v6.4.47", + "version": "v7.4.21", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "0f758dfab4608cac6a342b7e7f80cb84c9cc98ca" + "reference": "21f1bc2296f7ff6043241a8dcbc09559b3732820" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/0f758dfab4608cac6a342b7e7f80cb84c9cc98ca", - "reference": "0f758dfab4608cac6a342b7e7f80cb84c9cc98ca", + "url": "https://api.github.com/repos/symfony/console/zipball/21f1bc2296f7ff6043241a8dcbc09559b3732820", + "reference": "21f1bc2296f7ff6043241a8dcbc09559b3732820", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.0", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^5.4|^6.0|^7.0" + "symfony/string": "^7.2|^8.0" }, "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/dotenv": "<5.4", - "symfony/event-dispatcher": "<5.4", - "symfony/lock": "<5.4", - "symfony/process": "<5.4" + "symfony/dependency-injection": "<6.4", + "symfony/dotenv": "<6.4", + "symfony/event-dispatcher": "<6.4", + "symfony/lock": "<6.4", + "symfony/process": "<6.4" }, "provide": { "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0|^7.0", - "symfony/dependency-injection": "^5.4|^6.0|^7.0", - "symfony/event-dispatcher": "^5.4|^6.0|^7.0", - "symfony/http-foundation": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/lock": "^5.4|^6.0|^7.0", - "symfony/messenger": "^5.4|^6.0|^7.0", - "symfony/process": "^5.4|^6.0|^7.0", - "symfony/stopwatch": "^5.4|^6.0|^7.0", - "symfony/var-dumper": "^5.4|^6.0|^7.0" + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/event-dispatcher": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/lock": "^6.4|^7.0|^8.0", + "symfony/messenger": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/stopwatch": "^6.4|^7.0|^8.0", + "symfony/var-dumper": "^6.4|^7.0|^8.0" }, "type": "library", "autoload": { @@ -640,7 +697,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.47" + "source": "https://github.com/symfony/console/tree/v7.4.21" }, "funding": [ { @@ -660,7 +717,7 @@ "type": "tidelift" } ], - "time": "2026-09-18T10:23:48+00:00" + "time": "2026-10-12T18:45:38+00:00" }, { "name": "symfony/deprecation-contracts", @@ -815,25 +872,25 @@ }, { "name": "symfony/filesystem", - "version": "v6.4.45", + "version": "v7.4.21", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "6dabf41c21957a2060f101bd7bf7e322989866bd" + "reference": "fd0e3462be6d32a0d130e8423e4940a7688162d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/6dabf41c21957a2060f101bd7bf7e322989866bd", - "reference": "6dabf41c21957a2060f101bd7bf7e322989866bd", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/fd0e3462be6d32a0d130e8423e4940a7688162d8", + "reference": "fd0e3462be6d32a0d130e8423e4940a7688162d8", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, "require-dev": { - "symfony/process": "^5.4|^6.4|^7.0" + "symfony/process": "^6.4|^7.0|^8.0" }, "type": "library", "autoload": { @@ -861,7 +918,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.4.45" + "source": "https://github.com/symfony/filesystem/tree/v7.4.21" }, "funding": [ { @@ -881,27 +938,27 @@ "type": "tidelift" } ], - "time": "2026-08-23T07:59:31+00:00" + "time": "2026-10-06T20:05:19+00:00" }, { "name": "symfony/finder", - "version": "v6.4.47", + "version": "v7.4.20", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "c8d1b2a09bb820175d1f2f9a3cf30303200b10a7" + "reference": "2dd31e5208db7a0fda7bfc998ad727b79c2e4d1e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/c8d1b2a09bb820175d1f2f9a3cf30303200b10a7", - "reference": "c8d1b2a09bb820175d1f2f9a3cf30303200b10a7", + "url": "https://api.github.com/repos/symfony/finder/zipball/2dd31e5208db7a0fda7bfc998ad727b79c2e4d1e", + "reference": "2dd31e5208db7a0fda7bfc998ad727b79c2e4d1e", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.2" }, "require-dev": { - "symfony/filesystem": "^6.0|^7.0" + "symfony/filesystem": "^6.4|^7.0|^8.0" }, "type": "library", "autoload": { @@ -929,7 +986,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.47" + "source": "https://github.com/symfony/finder/tree/v7.4.20" }, "funding": [ { @@ -949,7 +1006,7 @@ "type": "tidelift" } ], - "time": "2026-09-25T09:03:59+00:00" + "time": "2026-09-26T06:31:10+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1034,6 +1091,90 @@ ], "time": "2026-04-10T16:19:22+00:00" }, + { + "name": "symfony/polyfill-iconv", + "version": "v1.43.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-iconv.git", + "reference": "254724d95fe01b679cd97d88786e9623ee00bfb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/254724d95fe01b679cd97d88786e9623ee00bfb7", + "reference": "254724d95fe01b679cd97d88786e9623ee00bfb7", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-iconv": "*" + }, + "suggest": { + "ext-iconv": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Iconv\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Iconv extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "iconv", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-iconv/tree/v1.43.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-09-29T06:25:14+00:00" + }, { "name": "symfony/polyfill-intl-grapheme", "version": "v1.43.0", @@ -1286,6 +1427,86 @@ ], "time": "2026-09-24T15:19:04+00:00" }, + { + "name": "symfony/polyfill-php84", + "version": "v1.43.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "22c6548499cbe5c5bb072fc0c42312dff062a015" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/22c6548499cbe5c5bb072fc0c42312dff062a015", + "reference": "22c6548499cbe5c5bb072fc0c42312dff062a015", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php84\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php84/tree/v1.43.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-09-23T22:01:09+00:00" + }, { "name": "symfony/service-contracts", "version": "v3.7.3", @@ -1375,22 +1596,23 @@ }, { "name": "symfony/string", - "version": "v6.4.46", + "version": "v7.4.21", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "4513ab2b0ad2d7845a2f920e2f30b61633c9e606" + "reference": "9bc35d074ad16a58c21cd52b18c5cacc4f4c3981" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/4513ab2b0ad2d7845a2f920e2f30b61633c9e606", - "reference": "4513ab2b0ad2d7845a2f920e2f30b61633c9e606", + "url": "https://api.github.com/repos/symfony/string/zipball/9bc35d074ad16a58c21cd52b18c5cacc4f4c3981", + "reference": "9bc35d074ad16a58c21cd52b18c5cacc4f4c3981", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-grapheme": "~1.33", "symfony/polyfill-intl-normalizer": "~1.0", "symfony/polyfill-mbstring": "~1.0" }, @@ -1398,10 +1620,11 @@ "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/http-client": "^5.4|^6.0|^7.0", - "symfony/intl": "^6.2|^7.0", + "symfony/emoji": "^7.1|^8.0", + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/intl": "^6.4|^7.0|^8.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^5.4|^6.0|^7.0" + "symfony/var-exporter": "^6.4|^7.0|^8.0" }, "type": "library", "autoload": { @@ -1440,7 +1663,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.4.46" + "source": "https://github.com/symfony/string/tree/v7.4.21" }, "funding": [ { @@ -1460,50 +1683,122 @@ "type": "tidelift" } ], - "time": "2026-09-11T09:03:57+00:00" + "time": "2026-10-03T15:15:30+00:00" }, { - "name": "thecodingmachine/safe", - "version": "v2.5.0", + "name": "symfony/var-dumper", + "version": "v7.4.21", "source": { "type": "git", - "url": "https://github.com/thecodingmachine/safe.git", - "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0" + "url": "https://github.com/symfony/var-dumper.git", + "reference": "55d06b02f49eca9bff61828548988e6f8763e8a6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/3115ecd6b4391662b4931daac4eba6b07a2ac1f0", - "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/55d06b02f49eca9bff61828548988e6f8763e8a6", + "reference": "55d06b02f49eca9bff61828548988e6f8763e8a6", "shasum": "" }, "require": { - "php": "^8.0" + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" }, "require-dev": { - "phpstan/phpstan": "^1.5", - "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "^3.2", - "thecodingmachine/phpstan-strict-rules": "^1.0" + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12|^4.0" }, + "bin": [ + "Resources/bin/var-dump-server" + ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.4.21" }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-10-13T05:48:33+00:00" + }, + { + "name": "thecodingmachine/safe", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/thecodingmachine/safe.git", + "reference": "705683a25bacf0d4860c7dea4d7947bfd09eea19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/705683a25bacf0d4860c7dea4d7947bfd09eea19", + "reference": "705683a25bacf0d4860c7dea4d7947bfd09eea19", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpstan/phpstan": "^2", + "phpunit/phpunit": "^10", + "squizlabs/php_codesniffer": "^3.2" + }, + "type": "library", "autoload": { "files": [ - "deprecated/apc.php", - "deprecated/array.php", - "deprecated/datetime.php", - "deprecated/libevent.php", - "deprecated/misc.php", - "deprecated/password.php", - "deprecated/mssql.php", - "deprecated/stats.php", - "deprecated/strings.php", "lib/special_cases.php", - "deprecated/mysqli.php", "generated/apache.php", "generated/apcu.php", "generated/array.php", @@ -1543,6 +1838,7 @@ "generated/mbstring.php", "generated/misc.php", "generated/mysql.php", + "generated/mysqli.php", "generated/network.php", "generated/oci8.php", "generated/opcache.php", @@ -1555,6 +1851,7 @@ "generated/ps.php", "generated/pspell.php", "generated/readline.php", + "generated/rnp.php", "generated/rpminfo.php", "generated/rrd.php", "generated/sem.php", @@ -1586,7 +1883,6 @@ "lib/DateTime.php", "lib/DateTimeImmutable.php", "lib/Exceptions/", - "deprecated/Exceptions/", "generated/Exceptions/" ] }, @@ -1597,9 +1893,27 @@ "description": "PHP core functions that throw exceptions instead of returning FALSE on error", "support": { "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/v2.5.0" + "source": "https://github.com/thecodingmachine/safe/tree/v3.4.0" }, - "time": "2023-04-05T11:54:14+00:00" + "funding": [ + { + "url": "https://github.com/OskarStark", + "type": "github" + }, + { + "url": "https://github.com/shish", + "type": "github" + }, + { + "url": "https://github.com/silasjoisten", + "type": "github" + }, + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2026-02-04T18:08:13+00:00" }, { "name": "webmozart/assert", @@ -1669,7 +1983,7 @@ "platform": {}, "platform-dev": {}, "platform-overrides": { - "php": "8.1" + "php": "8.2" }, "plugin-api-version": "2.9.0" } diff --git a/vendor-bin/php-scoper/patches.lock.json b/vendor-bin/php-scoper/patches.lock.json index 20f35bbddc..6aaf0659a5 100644 --- a/vendor-bin/php-scoper/patches.lock.json +++ b/vendor-bin/php-scoper/patches.lock.json @@ -1,49 +1,4 @@ { - "_hash": "c8fb3c34bc401cfb91713f5403b9bbebd1070c43c09e5f03d373094e285b95d3", - "patches": { - "thecodingmachine/safe": [ - { - "package": "thecodingmachine/safe", - "description": "PHP 8.4 compatibility, patch 1", - "url": "patches/thecodingmachine_safe_464.patch", - "sha256": "1ce69fe482f3279c0c58592aafadcb2682d41691609f6806a95a6adf99fe98a4", - "depth": 1, - "extra": { - "provenance": "root" - } - }, - { - "package": "thecodingmachine/safe", - "description": "PHP 8.4 compatibility, patch 2", - "url": "patches/thecodingmachine_safe_466.patch", - "sha256": "1e66db39edaa0be1aa5077300b76fe77b354b2a178ad30bce47accca83ea2cfc", - "depth": 1, - "extra": { - "provenance": "root" - } - }, - { - "package": "thecodingmachine/safe", - "description": "PHP 8.4 compatibility, patch 3", - "url": "patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch", - "sha256": "95bc42db06a6661ceaddcb9b91f6c1f865b9d9469e8d216d8dd84768c67a6b8f", - "depth": 1, - "extra": { - "provenance": "root" - } - } - ], - "humbug/php-scoper": [ - { - "package": "humbug/php-scoper", - "description": "PHP 8.5 compatibility, patch1", - "url": "patches/blizzz_php-scoper_1.patch", - "sha256": "83f86f1b049c4e8fd900314a6782cbb46e31bbd2ab1e8bb8abcd96ea39cb99bf", - "depth": 1, - "extra": { - "provenance": "root" - } - } - ] - } + "_hash": "6142bfcb78f54dfbf5247ae5e463f25bdb8fff1890806e2e45aa81a59c211653", + "patches": [] } diff --git a/vendor-bin/php-scoper/patches/blizzz_php-scoper_1.patch b/vendor-bin/php-scoper/patches/blizzz_php-scoper_1.patch deleted file mode 100644 index fe220c0bb2..0000000000 --- a/vendor-bin/php-scoper/patches/blizzz_php-scoper_1.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 1b21d662d776af70851fd4ba16d1f23b01c0f6fc Mon Sep 17 00:00:00 2001 -From: Arthur Schiwon -Date: Fri, 9 Jan 2026 11:06:58 +0100 -Subject: [PATCH] fix: nullable index is not php 8.5 compatible, but also not - needed - -Signed-off-by: Arthur Schiwon ---- - src/PhpParser/NodeVisitor/UseStmt/UseStmtCollection.php | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/src/PhpParser/NodeVisitor/UseStmt/UseStmtCollection.php b/src/PhpParser/NodeVisitor/UseStmt/UseStmtCollection.php -index 1c2e4c6d4..91fd143b6 100644 ---- a/src/PhpParser/NodeVisitor/UseStmt/UseStmtCollection.php -+++ b/src/PhpParser/NodeVisitor/UseStmt/UseStmtCollection.php -@@ -49,7 +49,6 @@ final class UseStmtCollection implements IteratorAggregate - * @var array> - */ - private array $nodes = [ -- null => [], - ]; - - public function add(?Name $namespaceName, Use_ $use): void diff --git a/vendor-bin/php-scoper/patches/blizzz_php-scoper_1.patch.license b/vendor-bin/php-scoper/patches/blizzz_php-scoper_1.patch.license deleted file mode 100644 index 11d570c0e0..0000000000 --- a/vendor-bin/php-scoper/patches/blizzz_php-scoper_1.patch.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 php-scoper contributors -SPDX-License-Identifier: MIT diff --git a/vendor-bin/php-scoper/patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch b/vendor-bin/php-scoper/patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch deleted file mode 100644 index 9ac8236b62..0000000000 --- a/vendor-bin/php-scoper/patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch +++ /dev/null @@ -1,1703 +0,0 @@ -From 6eeee2a20ffb2be3456ae8615b227c78e1ca8a20 Mon Sep 17 00:00:00 2001 -From: Arthur Schiwon -Date: Mon, 20 Jan 2025 20:39:05 +0100 -Subject: [PATCH] fix: convert implicit null in generated functions - -done with: - -ack -l '[\( ]{1,1}[a-zA-Z]+ [&]{0,1}\$[a-zA-Z-_]+ = null' generated/ | xargs -n1 sed -i -E 's/([\( ]{1,1})([a-zA-Z]+ [&]{0,1}\$[a-zA-Z\-_]+ = null)/\1?\2/g' - -Signed-off-by: Arthur Schiwon ---- - generated/bzip2.php | 2 +- - generated/calendar.php | 2 +- - generated/com.php | 2 +- - generated/cubrid.php | 16 +++++------ - generated/curl.php | 4 +-- - generated/datetime.php | 16 +++++------ - generated/eio.php | 62 ++++++++++++++++++++-------------------- - generated/errorfunc.php | 2 +- - generated/fileinfo.php | 2 +- - generated/filesystem.php | 6 ++-- - generated/gnupg.php | 2 +- - generated/ibase.php | 8 +++--- - generated/ibmDb2.php | 6 ++-- - generated/image.php | 10 +++---- - generated/imap.php | 6 ++-- - generated/ldap.php | 20 ++++++------- - generated/mailparse.php | 2 +- - generated/mbstring.php | 22 +++++++------- - generated/misc.php | 2 +- - generated/mysql.php | 2 +- - generated/network.php | 4 +-- - generated/oci8.php | 8 +++--- - generated/openssl.php | 16 +++++------ - generated/pcntl.php | 4 +-- - generated/pgsql.php | 18 ++++++------ - generated/ps.php | 4 +-- - generated/readline.php | 4 +-- - generated/rrd.php | 2 +- - generated/sem.php | 2 +- - generated/session.php | 8 +++--- - generated/sockets.php | 4 +-- - generated/spl.php | 2 +- - generated/sqlsrv.php | 6 ++-- - generated/ssh2.php | 14 ++++----- - generated/stream.php | 12 ++++---- - generated/swoole.php | 4 +-- - generated/uodbc.php | 8 +++--- - generated/xdiff.php | 2 +- - generated/yaml.php | 6 ++-- - generated/yaz.php | 2 +- - generated/zlib.php | 6 ++-- - 41 files changed, 165 insertions(+), 165 deletions(-) - -diff --git a/generated/bzip2.php b/generated/bzip2.php -index df550e09..072ba224 100644 ---- a/generated/bzip2.php -+++ b/generated/bzip2.php -@@ -82,7 +82,7 @@ function bzread($bz, int $length = 1024): string - * @throws Bzip2Exception - * - */ --function bzwrite($bz, string $data, int $length = null): int -+function bzwrite($bz, string $data, ?int $length = null): int - { - error_clear_last(); - if ($length !== null) { -diff --git a/generated/calendar.php b/generated/calendar.php -index c063ab06..d290be5a 100644 ---- a/generated/calendar.php -+++ b/generated/calendar.php -@@ -15,7 +15,7 @@ - * @throws CalendarException - * - */ --function unixtojd(int $timestamp = null): int -+function unixtojd(?int $timestamp = null): int - { - error_clear_last(); - if ($timestamp !== null) { -diff --git a/generated/com.php b/generated/com.php -index fcbcc551..2b009522 100644 ---- a/generated/com.php -+++ b/generated/com.php -@@ -138,7 +138,7 @@ function com_load_typelib(string $typelib, bool $case_insensitive = true): void - * @throws ComException - * - */ --function com_print_typeinfo(object $variant, string $dispatch_interface = null, bool $display_sink = false): void -+function com_print_typeinfo(object $variant, ?string $dispatch_interface = null, bool $display_sink = false): void - { - error_clear_last(); - if ($display_sink !== false) { -diff --git a/generated/cubrid.php b/generated/cubrid.php -index 4835f87b..423f0cc5 100644 ---- a/generated/cubrid.php -+++ b/generated/cubrid.php -@@ -124,7 +124,7 @@ - * @throws CubridException - * - */ --function cubrid_bind($req_identifier, int $bind_index, $bind_value, string $bind_value_type = null): void -+function cubrid_bind($req_identifier, int $bind_index, $bind_value, ?string $bind_value_type = null): void - { - error_clear_last(); - if ($bind_value_type !== null) { -@@ -303,7 +303,7 @@ function cubrid_commit($conn_identifier): void - * @throws CubridException - * - */ --function cubrid_connect_with_url(string $conn_url, string $userid = null, string $passwd = null, bool $new_link = false) -+function cubrid_connect_with_url(string $conn_url, ?string $userid = null, ?string $passwd = null, bool $new_link = false) - { - error_clear_last(); - if ($new_link !== false) { -@@ -347,7 +347,7 @@ function cubrid_connect_with_url(string $conn_url, string $userid = null, string - * @throws CubridException - * - */ --function cubrid_connect(string $host, int $port, string $dbname, string $userid = null, string $passwd = null, bool $new_link = false) -+function cubrid_connect(string $host, int $port, string $dbname, ?string $userid = null, ?string $passwd = null, bool $new_link = false) - { - error_clear_last(); - if ($new_link !== false) { -@@ -822,7 +822,7 @@ function cubrid_lob_size($lob_identifier): string - * @throws CubridException - * - */ --function cubrid_lob2_bind($req_identifier, int $bind_index, $bind_value, string $bind_value_type = null): void -+function cubrid_lob2_bind($req_identifier, int $bind_index, $bind_value, ?string $bind_value_type = null): void - { - error_clear_last(); - if ($bind_value_type !== null) { -@@ -1300,7 +1300,7 @@ function cubrid_next_result($result): void - * @throws CubridException - * - */ --function cubrid_pconnect_with_url(string $conn_url, string $userid = null, string $passwd = null) -+function cubrid_pconnect_with_url(string $conn_url, ?string $userid = null, ?string $passwd = null) - { - error_clear_last(); - if ($passwd !== null) { -@@ -1345,7 +1345,7 @@ function cubrid_pconnect_with_url(string $conn_url, string $userid = null, strin - * @throws CubridException - * - */ --function cubrid_pconnect(string $host, int $port, string $dbname, string $userid = null, string $passwd = null) -+function cubrid_pconnect(string $host, int $port, string $dbname, ?string $userid = null, ?string $passwd = null) - { - error_clear_last(); - if ($passwd !== null) { -@@ -1409,7 +1409,7 @@ function cubrid_prepare($conn_identifier, string $prepare_stmt, int $option = 0) - * @throws CubridException - * - */ --function cubrid_put($conn_identifier, string $oid, string $attr = null, $value = null): void -+function cubrid_put($conn_identifier, string $oid, ?string $attr = null, $value = null): void - { - error_clear_last(); - if ($value !== null) { -@@ -1837,7 +1837,7 @@ function cubrid_rollback($conn_identifier): void - * @throws CubridException - * - */ --function cubrid_schema($conn_identifier, int $schema_type, string $class_name = null, string $attr_name = null): array -+function cubrid_schema($conn_identifier, int $schema_type, ?string $class_name = null, ?string $attr_name = null): array - { - error_clear_last(); - if ($attr_name !== null) { -diff --git a/generated/curl.php b/generated/curl.php -index 3c135f0b..b728130f 100644 ---- a/generated/curl.php -+++ b/generated/curl.php -@@ -532,7 +532,7 @@ function curl_exec(\CurlHandle $handle) - * @throws CurlException - * - */ --function curl_getinfo(\CurlHandle $handle, int $option = null) -+function curl_getinfo(\CurlHandle $handle, ?int $option = null) - { - error_clear_last(); - if ($option !== null) { -@@ -562,7 +562,7 @@ function curl_getinfo(\CurlHandle $handle, int $option = null) - * @throws CurlException - * - */ --function curl_init(string $url = null): \CurlHandle -+function curl_init(?string $url = null): \CurlHandle - { - error_clear_last(); - if ($url !== null) { -diff --git a/generated/datetime.php b/generated/datetime.php -index 31d39ec2..7d20393d 100644 ---- a/generated/datetime.php -+++ b/generated/datetime.php -@@ -319,7 +319,7 @@ function date_sun_info(int $timestamp, float $latitude, float $longitude): array - * @throws DatetimeException - * - */ --function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = null) -+function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude = null, ?float $longitude = null, ?float $zenith = null, ?float $utcOffset = null) - { - error_clear_last(); - if ($utcOffset !== null) { -@@ -422,7 +422,7 @@ function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, f - * @throws DatetimeException - * - */ --function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = null) -+function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude = null, ?float $longitude = null, ?float $zenith = null, ?float $utcOffset = null) - { - error_clear_last(); - if ($utcOffset !== null) { -@@ -460,7 +460,7 @@ function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, fl - * @throws DatetimeException - * - */ --function date(string $format, int $timestamp = null): string -+function date(string $format, ?int $timestamp = null): string - { - error_clear_last(); - if ($timestamp !== null) { -@@ -507,7 +507,7 @@ function date(string $format, int $timestamp = null): string - * @throws DatetimeException - * - */ --function gmmktime(int $hour, int $minute = null, int $second = null, int $month = null, int $day = null, int $year = null): int -+function gmmktime(int $hour, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null): int - { - error_clear_last(); - if ($year !== null) { -@@ -551,7 +551,7 @@ function gmmktime(int $hour, int $minute = null, int $second = null, int $month - * @throws DatetimeException - * - */ --function gmstrftime(string $format, int $timestamp = null): string -+function gmstrftime(string $format, ?int $timestamp = null): string - { - error_clear_last(); - if ($timestamp !== null) { -@@ -682,7 +682,7 @@ function gmstrftime(string $format, int $timestamp = null): string - * @throws DatetimeException - * - */ --function idate(string $format, int $timestamp = null): int -+function idate(string $format, ?int $timestamp = null): int - { - error_clear_last(); - if ($timestamp !== null) { -@@ -1000,7 +1000,7 @@ function idate(string $format, int $timestamp = null): int - * @throws DatetimeException - * - */ --function strftime(string $format, int $timestamp = null): string -+function strftime(string $format, ?int $timestamp = null): string - { - error_clear_last(); - if ($timestamp !== null) { -@@ -1112,7 +1112,7 @@ function strptime(string $timestamp, string $format): array - * @throws DatetimeException - * - */ --function strtotime(string $datetime, int $baseTimestamp = null): int -+function strtotime(string $datetime, ?int $baseTimestamp = null): int - { - error_clear_last(); - if ($baseTimestamp !== null) { -diff --git a/generated/eio.php b/generated/eio.php -index c4dd39c6..35602770 100644 ---- a/generated/eio.php -+++ b/generated/eio.php -@@ -19,7 +19,7 @@ - * @throws EioException - * - */ --function eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_busy($delay, $pri, $callback, $data); -@@ -71,7 +71,7 @@ function eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, callable $callback = n - * @throws EioException - * - */ --function eio_chmod(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_chmod(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_chmod($path, $mode, $pri, $callback, $data); -@@ -123,7 +123,7 @@ function eio_chmod(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable - * @throws EioException - * - */ --function eio_chown(string $path, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_chown(string $path, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_chown($path, $uid, $gid, $pri, $callback, $data); -@@ -172,7 +172,7 @@ function eio_chown(string $path, int $uid, int $gid = -1, int $pri = EIO_PRI_DEF - * @throws EioException - * - */ --function eio_close($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_close($fd, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_close($fd, $pri, $callback, $data); -@@ -280,7 +280,7 @@ function eio_custom(callable $execute, int $pri, callable $callback, $data = nul - * @throws EioException - * - */ --function eio_dup2($fd, $fd2, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_dup2($fd, $fd2, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_dup2($fd, $fd2, $pri, $callback, $data); -@@ -352,7 +352,7 @@ function eio_event_loop(): void - * @throws EioException - * - */ --function eio_fallocate($fd, int $mode, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_fallocate($fd, int $mode, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_fallocate($fd, $mode, $offset, $length, $pri, $callback, $data); -@@ -402,7 +402,7 @@ function eio_fallocate($fd, int $mode, int $offset, int $length, int $pri = EIO_ - * @throws EioException - * - */ --function eio_fchmod($fd, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_fchmod($fd, int $mode, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_fchmod($fd, $mode, $pri, $callback, $data); -@@ -453,7 +453,7 @@ function eio_fchmod($fd, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callba - * @throws EioException - * - */ --function eio_fchown($fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_fchown($fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_fchown($fd, $uid, $gid, $pri, $callback, $data); -@@ -501,7 +501,7 @@ function eio_fchown($fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, ca - * @throws EioException - * - */ --function eio_fdatasync($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_fdatasync($fd, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_fdatasync($fd, $pri, $callback, $data); -@@ -655,7 +655,7 @@ function eio_fstatvfs($fd, int $pri, callable $callback, $data = null) - * @throws EioException - * - */ --function eio_fsync($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_fsync($fd, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_fsync($fd, $pri, $callback, $data); -@@ -706,7 +706,7 @@ function eio_fsync($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $ - * @throws EioException - * - */ --function eio_ftruncate($fd, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_ftruncate($fd, int $offset = 0, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_ftruncate($fd, $offset, $pri, $callback, $data); -@@ -757,7 +757,7 @@ function eio_ftruncate($fd, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callabl - * @throws EioException - * - */ --function eio_futime($fd, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_futime($fd, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_futime($fd, $atime, $mtime, $pri, $callback, $data); -@@ -801,7 +801,7 @@ function eio_futime($fd, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, - * @throws EioException - * - */ --function eio_grp(callable $callback, string $data = null) -+function eio_grp(callable $callback, ?string $data = null) - { - error_clear_last(); - $safeResult = \eio_grp($callback, $data); -@@ -900,7 +900,7 @@ function eio_lstat(string $path, int $pri, callable $callback, $data = null) - * @throws EioException - * - */ --function eio_mkdir(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_mkdir(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_mkdir($path, $mode, $pri, $callback, $data); -@@ -965,7 +965,7 @@ function eio_mkdir(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable - * @throws EioException - * - */ --function eio_mknod(string $path, int $mode, int $dev, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_mknod(string $path, int $mode, int $dev, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_mknod($path, $mode, $dev, $pri, $callback, $data); -@@ -1013,7 +1013,7 @@ function eio_mknod(string $path, int $mode, int $dev, int $pri = EIO_PRI_DEFAULT - * @throws EioException - * - */ --function eio_nop(int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_nop(int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_nop($pri, $callback, $data); -@@ -1064,7 +1064,7 @@ function eio_nop(int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = - * @throws EioException - * - */ --function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_readahead($fd, $offset, $length, $pri, $callback, $data); -@@ -1368,7 +1368,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT - * @throws EioException - * - */ --function eio_readdir(string $path, int $flags, int $pri, callable $callback, string $data = null) -+function eio_readdir(string $path, int $flags, int $pri, callable $callback, ?string $data = null) - { - error_clear_last(); - $safeResult = \eio_readdir($path, $flags, $pri, $callback, $data); -@@ -1416,7 +1416,7 @@ function eio_readdir(string $path, int $flags, int $pri, callable $callback, str - * @throws EioException - * - */ --function eio_readlink(string $path, int $pri, callable $callback, string $data = null) -+function eio_readlink(string $path, int $pri, callable $callback, ?string $data = null) - { - error_clear_last(); - $safeResult = \eio_readlink($path, $pri, $callback, $data); -@@ -1465,7 +1465,7 @@ function eio_readlink(string $path, int $pri, callable $callback, string $data = - * @throws EioException - * - */ --function eio_rename(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_rename(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_rename($path, $new_path, $pri, $callback, $data); -@@ -1513,7 +1513,7 @@ function eio_rename(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, - * @throws EioException - * - */ --function eio_rmdir(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_rmdir(string $path, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_rmdir($path, $pri, $callback, $data); -@@ -1569,7 +1569,7 @@ function eio_rmdir(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback - * @throws EioException - * - */ --function eio_seek($fd, int $offset, int $whence, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_seek($fd, int $offset, int $whence, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_seek($fd, $offset, $whence, $pri, $callback, $data); -@@ -1621,7 +1621,7 @@ function eio_seek($fd, int $offset, int $whence, int $pri = EIO_PRI_DEFAULT, cal - * @throws EioException - * - */ --function eio_sendfile($out_fd, $in_fd, int $offset, int $length, int $pri = null, callable $callback = null, string $data = null) -+function eio_sendfile($out_fd, $in_fd, int $offset, int $length, ?int $pri = null, ?callable $callback = null, ?string $data = null) - { - error_clear_last(); - if ($data !== null) { -@@ -1784,7 +1784,7 @@ function eio_statvfs(string $path, int $pri, callable $callback, $data = null) - * @throws EioException - * - */ --function eio_symlink(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_symlink(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_symlink($path, $new_path, $pri, $callback, $data); -@@ -1843,7 +1843,7 @@ function eio_symlink(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, - * @throws EioException - * - */ --function eio_sync_file_range($fd, int $offset, int $nbytes, int $flags, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_sync_file_range($fd, int $offset, int $nbytes, int $flags, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_sync_file_range($fd, $offset, $nbytes, $flags, $pri, $callback, $data); -@@ -1864,7 +1864,7 @@ function eio_sync_file_range($fd, int $offset, int $nbytes, int $flags, int $pri - * @throws EioException - * - */ --function eio_sync(int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_sync(int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_sync($pri, $callback, $data); -@@ -1912,7 +1912,7 @@ function eio_sync(int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = - * @throws EioException - * - */ --function eio_syncfs($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_syncfs($fd, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_syncfs($fd, $pri, $callback, $data); -@@ -1962,7 +1962,7 @@ function eio_syncfs($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, - * @throws EioException - * - */ --function eio_truncate(string $path, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_truncate(string $path, int $offset = 0, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_truncate($path, $offset, $pri, $callback, $data); -@@ -2010,7 +2010,7 @@ function eio_truncate(string $path, int $offset = 0, int $pri = EIO_PRI_DEFAULT, - * @throws EioException - * - */ --function eio_unlink(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_unlink(string $path, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_unlink($path, $pri, $callback, $data); -@@ -2060,7 +2060,7 @@ function eio_unlink(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback - * @throws EioException - * - */ --function eio_utime(string $path, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_utime(string $path, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_utime($path, $atime, $mtime, $pri, $callback, $data); -@@ -2113,7 +2113,7 @@ function eio_utime(string $path, float $atime, float $mtime, int $pri = EIO_PRI_ - * @throws EioException - * - */ --function eio_write($fd, string $str, int $length = 0, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) -+function eio_write($fd, string $str, int $length = 0, int $offset = 0, int $pri = EIO_PRI_DEFAULT, ?callable $callback = null, $data = null) - { - error_clear_last(); - $safeResult = \eio_write($fd, $str, $length, $offset, $pri, $callback, $data); -diff --git a/generated/errorfunc.php b/generated/errorfunc.php -index b693deca..c93c7f7f 100644 ---- a/generated/errorfunc.php -+++ b/generated/errorfunc.php -@@ -66,7 +66,7 @@ - * @throws ErrorfuncException - * - */ --function error_log(string $message, int $message_type = 0, string $destination = null, string $additional_headers = null): void -+function error_log(string $message, int $message_type = 0, ?string $destination = null, ?string $additional_headers = null): void - { - error_clear_last(); - if ($additional_headers !== null) { -diff --git a/generated/fileinfo.php b/generated/fileinfo.php -index dda07206..adf4d1b8 100644 ---- a/generated/fileinfo.php -+++ b/generated/fileinfo.php -@@ -43,7 +43,7 @@ function finfo_close($finfo): void - * @throws FileinfoException - * - */ --function finfo_open(int $flags = FILEINFO_NONE, string $magic_database = null) -+function finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null) - { - error_clear_last(); - if ($magic_database !== null) { -diff --git a/generated/filesystem.php b/generated/filesystem.php -index df545f84..32eb8b36 100644 ---- a/generated/filesystem.php -+++ b/generated/filesystem.php -@@ -260,7 +260,7 @@ function fflush($stream): void - * @throws FilesystemException - * - */ --function file_get_contents(string $filename, bool $use_include_path = false, $context = null, int $offset = 0, int $length = null): string -+function file_get_contents(string $filename, bool $use_include_path = false, $context = null, int $offset = 0, ?int $length = null): string - { - error_clear_last(); - if ($length !== null) { -@@ -985,7 +985,7 @@ function ftruncate($stream, int $size): void - * @throws FilesystemException - * - */ --function fwrite($stream, string $data, int $length = null): int -+function fwrite($stream, string $data, ?int $length = null): int - { - error_clear_last(); - if ($length !== null) { -@@ -1561,7 +1561,7 @@ function tmpfile() - * @throws FilesystemException - * - */ --function touch(string $filename, int $mtime = null, int $atime = null): void -+function touch(string $filename, ?int $mtime = null, ?int $atime = null): void - { - error_clear_last(); - if ($atime !== null) { -diff --git a/generated/gnupg.php b/generated/gnupg.php -index 51055b8d..83784522 100644 ---- a/generated/gnupg.php -+++ b/generated/gnupg.php -@@ -53,7 +53,7 @@ function gnupg_addencryptkey($identifier, string $fingerprint): void - * @throws GnupgException - * - */ --function gnupg_addsignkey($identifier, string $fingerprint, string $passphrase = null): void -+function gnupg_addsignkey($identifier, string $fingerprint, ?string $passphrase = null): void - { - error_clear_last(); - if ($passphrase !== null) { -diff --git a/generated/ibase.php b/generated/ibase.php -index 18c7206c..908b0024 100644 ---- a/generated/ibase.php -+++ b/generated/ibase.php -@@ -34,7 +34,7 @@ function fbird_blob_cancel($blob_handle): void - * @throws IbaseException - * - */ --function ibase_add_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void -+function ibase_add_user($service_handle, string $user_name, string $password, ?string $first_name = null, ?string $middle_name = null, ?string $last_name = null): void - { - error_clear_last(); - if ($last_name !== null) { -@@ -266,7 +266,7 @@ function ibase_commit($link_or_trans_identifier = null): void - * @throws IbaseException - * - */ --function ibase_connect(string $database = null, string $username = null, string $password = null, string $charset = null, int $buffers = null, int $dialect = null, string $role = null, int $sync = null) -+function ibase_connect(?string $database = null, ?string $username = null, ?string $password = null, ?string $charset = null, ?int $buffers = null, ?int $dialect = null, ?string $role = null, ?int $sync = null) - { - error_clear_last(); - if ($sync !== null) { -@@ -423,7 +423,7 @@ function ibase_maintain_db($service_handle, string $db, int $action, int $argume - * @throws IbaseException - * - */ --function ibase_modify_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void -+function ibase_modify_user($service_handle, string $user_name, string $password, ?string $first_name = null, ?string $middle_name = null, ?string $last_name = null): void - { - error_clear_last(); - if ($last_name !== null) { -@@ -500,7 +500,7 @@ function ibase_name_result($result, string $name): void - * @throws IbaseException - * - */ --function ibase_pconnect(string $database = null, string $username = null, string $password = null, string $charset = null, int $buffers = null, int $dialect = null, string $role = null, int $sync = null) -+function ibase_pconnect(?string $database = null, ?string $username = null, ?string $password = null, ?string $charset = null, ?int $buffers = null, ?int $dialect = null, ?string $role = null, ?int $sync = null) - { - error_clear_last(); - if ($sync !== null) { -diff --git a/generated/ibmDb2.php b/generated/ibmDb2.php -index e84347b0..5f1466b2 100644 ---- a/generated/ibmDb2.php -+++ b/generated/ibmDb2.php -@@ -46,7 +46,7 @@ - * @throws IbmDb2Exception - * - */ --function db2_autocommit($connection, int $value = null) -+function db2_autocommit($connection, ?int $value = null) - { - error_clear_last(); - if ($value !== null) { -@@ -96,7 +96,7 @@ function db2_autocommit($connection, int $value = null) - * @throws IbmDb2Exception - * - */ --function db2_bind_param($stmt, int $parameter_number, string $variable_name, int $parameter_type = null, int $data_type = 0, int $precision = -1, int $scale = 0): void -+function db2_bind_param($stmt, int $parameter_number, string $variable_name, ?int $parameter_type = null, int $data_type = 0, int $precision = -1, int $scale = 0): void - { - error_clear_last(); - if ($scale !== 0) { -@@ -304,7 +304,7 @@ function db2_commit($connection): void - * @throws IbmDb2Exception - * - */ --function db2_execute($stmt, array $parameters = null): void -+function db2_execute($stmt, ?array $parameters = null): void - { - error_clear_last(); - if ($parameters !== null) { -diff --git a/generated/image.php b/generated/image.php -index c9d4cb92..7e103025 100644 ---- a/generated/image.php -+++ b/generated/image.php -@@ -112,7 +112,7 @@ function image_type_to_extension(int $image_type, bool $include_dot = true): str - * @throws ImageException - * - */ --function image2wbmp($image, ?string $filename = null, int $foreground = null): void -+function image2wbmp($image, ?string $filename = null, ?int $foreground = null): void - { - error_clear_last(); - if ($foreground !== null) { -@@ -139,7 +139,7 @@ function image2wbmp($image, ?string $filename = null, int $foreground = null): v - * @throws ImageException - * - */ --function imageaffine($image, array $affine, array $clip = null) -+function imageaffine($image, array $affine, ?array $clip = null) - { - error_clear_last(); - if ($clip !== null) { -@@ -2136,7 +2136,7 @@ function imagerectangle($image, int $x1, int $y1, int $x2, int $y2, int $color): - * @throws ImageException - * - */ --function imageresolution($image, int $resolution_x = null, int $resolution_y = null) -+function imageresolution($image, ?int $resolution_x = null, ?int $resolution_y = null) - { - error_clear_last(); - if ($resolution_y !== null) { -@@ -2814,7 +2814,7 @@ function imagettftext($image, float $size, float $angle, int $x, int $y, int $co - * @throws ImageException - * - */ --function imagewbmp($image, $file = null, int $foreground_color = null): void -+function imagewbmp($image, $file = null, ?int $foreground_color = null): void - { - error_clear_last(); - if ($foreground_color !== null) { -@@ -2877,7 +2877,7 @@ function imagewebp($image, $file = null, int $quality = -1): void - * @throws ImageException - * - */ --function imagexbm($image, $filename, int $foreground_color = null): void -+function imagexbm($image, $filename, ?int $foreground_color = null): void - { - error_clear_last(); - if ($foreground_color !== null) { -diff --git a/generated/imap.php b/generated/imap.php -index a654470d..9262c489 100644 ---- a/generated/imap.php -+++ b/generated/imap.php -@@ -41,7 +41,7 @@ function imap_8bit(string $string): string - * @throws ImapException - * - */ --function imap_append($imap, string $folder, string $message, string $options = null, string $internal_date = null): void -+function imap_append($imap, string $folder, string $message, ?string $options = null, ?string $internal_date = null): void - { - error_clear_last(); - if ($internal_date !== null) { -@@ -1452,7 +1452,7 @@ function imap_mail_move($imap, string $message_nums, string $mailbox, int $flags - * @throws ImapException - * - */ --function imap_mail(string $to, string $subject, string $message, string $additional_headers = null, string $cc = null, string $bcc = null, string $return_path = null): void -+function imap_mail(string $to, string $subject, string $message, ?string $additional_headers = null, ?string $cc = null, ?string $bcc = null, ?string $return_path = null): void - { - error_clear_last(); - if ($return_path !== null) { -@@ -2063,7 +2063,7 @@ function imap_setflag_full($imap, string $sequence, string $flag, int $options = - * @throws ImapException - * - */ --function imap_sort($imap, int $criteria, int $reverse, int $flags = 0, string $search_criteria = null, string $charset = null): array -+function imap_sort($imap, int $criteria, int $reverse, int $flags = 0, ?string $search_criteria = null, ?string $charset = null): array - { - error_clear_last(); - if ($charset !== null) { -diff --git a/generated/ldap.php b/generated/ldap.php -index 867a074f..ad68c2c2 100644 ---- a/generated/ldap.php -+++ b/generated/ldap.php -@@ -47,7 +47,7 @@ function ldap_8859_to_t61(string $value): string - * @throws LdapException - * - */ --function ldap_add($ldap, string $dn, array $entry, array $controls = null): void -+function ldap_add($ldap, string $dn, array $entry, ?array $controls = null): void - { - error_clear_last(); - if ($controls !== null) { -@@ -159,7 +159,7 @@ function ldap_count_entries($ldap, $result): int - * @throws LdapException - * - */ --function ldap_delete($ldap, string $dn, array $controls = null): void -+function ldap_delete($ldap, string $dn, ?array $controls = null): void - { - error_clear_last(); - if ($controls !== null) { -@@ -208,7 +208,7 @@ function ldap_dn2ufn(string $dn): string - * @throws LdapException - * - */ --function ldap_exop_passwd($ldap, string $user = "", string $old_password = "", string $new_password = "", array &$controls = null) -+function ldap_exop_passwd($ldap, string $user = "", string $old_password = "", string $new_password = "", ?array &$controls = null) - { - error_clear_last(); - $safeResult = \ldap_exop_passwd($ldap, $user, $old_password, $new_password, $controls); -@@ -256,7 +256,7 @@ function ldap_exop_whoami($ldap) - * @throws LdapException - * - */ --function ldap_exop($ldap, string $request_oid, string $request_data = null, ?array $controls = null, ?string &$response_data = null, ?string &$response_oid = null) -+function ldap_exop($ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, ?string &$response_data = null, ?string &$response_oid = null) - { - error_clear_last(); - if ($response_oid !== null) { -@@ -738,7 +738,7 @@ function ldap_get_values($ldap, $entry, string $attribute): array - * @throws LdapException - * - */ --function ldap_mod_add($ldap, string $dn, array $entry, array $controls = null): void -+function ldap_mod_add($ldap, string $dn, array $entry, ?array $controls = null): void - { - error_clear_last(); - if ($controls !== null) { -@@ -764,7 +764,7 @@ function ldap_mod_add($ldap, string $dn, array $entry, array $controls = null): - * @throws LdapException - * - */ --function ldap_mod_del($ldap, string $dn, array $entry, array $controls = null): void -+function ldap_mod_del($ldap, string $dn, array $entry, ?array $controls = null): void - { - error_clear_last(); - if ($controls !== null) { -@@ -789,7 +789,7 @@ function ldap_mod_del($ldap, string $dn, array $entry, array $controls = null): - * @throws LdapException - * - */ --function ldap_mod_replace($ldap, string $dn, array $entry, array $controls = null): void -+function ldap_mod_replace($ldap, string $dn, array $entry, ?array $controls = null): void - { - error_clear_last(); - if ($controls !== null) { -@@ -888,7 +888,7 @@ function ldap_mod_replace($ldap, string $dn, array $entry, array $controls = nul - * @throws LdapException - * - */ --function ldap_modify_batch($ldap, string $dn, array $modifications_info, array $controls = null): void -+function ldap_modify_batch($ldap, string $dn, array $modifications_info, ?array $controls = null): void - { - error_clear_last(); - if ($controls !== null) { -@@ -987,7 +987,7 @@ function ldap_parse_result($ldap, $result, ?int &$error_code, ?string &$matched_ - * @throws LdapException - * - */ --function ldap_rename($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, array $controls = null): void -+function ldap_rename($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, ?array $controls = null): void - { - error_clear_last(); - if ($controls !== null) { -@@ -1015,7 +1015,7 @@ function ldap_rename($ldap, string $dn, string $new_rdn, string $new_parent, boo - * @throws LdapException - * - */ --function ldap_sasl_bind($ldap, string $dn = null, string $password = null, string $mech = null, string $realm = null, string $authc_id = null, string $authz_id = null, string $props = null): void -+function ldap_sasl_bind($ldap, ?string $dn = null, ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authc_id = null, ?string $authz_id = null, ?string $props = null): void - { - error_clear_last(); - if ($props !== null) { -diff --git a/generated/mailparse.php b/generated/mailparse.php -index b6fc0070..82c75d63 100644 ---- a/generated/mailparse.php -+++ b/generated/mailparse.php -@@ -26,7 +26,7 @@ - * @throws MailparseException - * - */ --function mailparse_msg_extract_part_file($mimemail, $filename, callable $callbackfunc = null): string -+function mailparse_msg_extract_part_file($mimemail, $filename, ?callable $callbackfunc = null): string - { - error_clear_last(); - if ($callbackfunc !== null) { -diff --git a/generated/mbstring.php b/generated/mbstring.php -index 21203436..f1c97816 100644 ---- a/generated/mbstring.php -+++ b/generated/mbstring.php -@@ -19,7 +19,7 @@ - * @throws MbstringException - * - */ --function mb_chr(int $codepoint, string $encoding = null): string -+function mb_chr(int $codepoint, ?string $encoding = null): string - { - error_clear_last(); - if ($encoding !== null) { -@@ -170,7 +170,7 @@ function mb_encoding_aliases(string $encoding): array - * @throws MbstringException - * - */ --function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, string $options = null): ?string -+function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = null): ?string - { - error_clear_last(); - if ($options !== null) { -@@ -200,7 +200,7 @@ function mb_ereg_replace_callback(string $pattern, callable $callback, string $s - * @throws MbstringException - * - */ --function mb_ereg_replace(string $pattern, string $replacement, string $string, string $options = null): ?string -+function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = null): ?string - { - error_clear_last(); - if ($options !== null) { -@@ -247,7 +247,7 @@ function mb_ereg_search_getregs(): array - * @throws MbstringException - * - */ --function mb_ereg_search_init(string $string, string $pattern = null, string $options = null): void -+function mb_ereg_search_init(string $string, ?string $pattern = null, ?string $options = null): void - { - error_clear_last(); - if ($options !== null) { -@@ -272,7 +272,7 @@ function mb_ereg_search_init(string $string, string $pattern = null, string $opt - * @throws MbstringException - * - */ --function mb_ereg_search_regs(string $pattern = null, string $options = null): array -+function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array - { - error_clear_last(); - if ($options !== null) { -@@ -319,7 +319,7 @@ function mb_ereg_search_setpos(int $offset): void - * @throws MbstringException - * - */ --function mb_eregi_replace(string $pattern, string $replacement, string $string, string $options = null): string -+function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = null): string - { - error_clear_last(); - if ($options !== null) { -@@ -390,7 +390,7 @@ function mb_get_info(string $type = "all") - * @throws MbstringException - * - */ --function mb_http_output(string $encoding = null) -+function mb_http_output(?string $encoding = null) - { - error_clear_last(); - if ($encoding !== null) { -@@ -421,7 +421,7 @@ function mb_http_output(string $encoding = null) - * @throws MbstringException - * - */ --function mb_internal_encoding(string $encoding = null) -+function mb_internal_encoding(?string $encoding = null) - { - error_clear_last(); - if ($encoding !== null) { -@@ -449,7 +449,7 @@ function mb_internal_encoding(string $encoding = null) - * @throws MbstringException - * - */ --function mb_ord(string $string, string $encoding = null): int -+function mb_ord(string $string, ?string $encoding = null): int - { - error_clear_last(); - if ($encoding !== null) { -@@ -497,7 +497,7 @@ function mb_parse_str(string $string, ?array &$result): void - * @throws MbstringException - * - */ --function mb_regex_encoding(string $encoding = null) -+function mb_regex_encoding(?string $encoding = null) - { - error_clear_last(); - if ($encoding !== null) { -@@ -569,7 +569,7 @@ function mb_regex_encoding(string $encoding = null) - * @throws MbstringException - * - */ --function mb_send_mail(string $to, string $subject, string $message, $additional_headers = [], string $additional_params = null): void -+function mb_send_mail(string $to, string $subject, string $message, $additional_headers = [], ?string $additional_params = null): void - { - error_clear_last(); - if ($additional_params !== null) { -diff --git a/generated/misc.php b/generated/misc.php -index ab4ac59b..b795a44f 100644 ---- a/generated/misc.php -+++ b/generated/misc.php -@@ -404,7 +404,7 @@ function sapi_windows_set_ctrl_handler($handler, bool $add = true): void - * @throws MiscException - * - */ --function sapi_windows_vt100_support($stream, bool $enable = null): void -+function sapi_windows_vt100_support($stream, ?bool $enable = null): void - { - error_clear_last(); - if ($enable !== null) { -diff --git a/generated/mysql.php b/generated/mysql.php -index 2f882444..8a0a27ea 100644 ---- a/generated/mysql.php -+++ b/generated/mysql.php -@@ -73,7 +73,7 @@ function mysql_close($link_identifier = null): void - * @throws MysqlException - * - */ --function mysql_connect(string $server = null, string $username = null, string $password = null, bool $new_link = false, int $client_flags = 0) -+function mysql_connect(?string $server = null, ?string $username = null, ?string $password = null, bool $new_link = false, int $client_flags = 0) - { - error_clear_last(); - if ($client_flags !== 0) { -diff --git a/generated/network.php b/generated/network.php -index 9b4e5965..2a4a58d3 100644 ---- a/generated/network.php -+++ b/generated/network.php -@@ -306,7 +306,7 @@ function dns_get_record(string $hostname, int $type = DNS_ANY, ?array &$authorit - * @throws NetworkException - * - */ --function fsockopen(string $hostname, int $port = -1, ?int &$error_code = null, ?string &$error_message = null, float $timeout = null) -+function fsockopen(string $hostname, int $port = -1, ?int &$error_code = null, ?string &$error_message = null, ?float $timeout = null) - { - error_clear_last(); - if ($timeout !== null) { -@@ -733,7 +733,7 @@ function openlog(string $prefix, int $flags, int $facility): void - * @throws NetworkException - * - */ --function pfsockopen(string $hostname, int $port = -1, ?int &$error_code = null, ?string &$error_message = null, float $timeout = null) -+function pfsockopen(string $hostname, int $port = -1, ?int &$error_code = null, ?string &$error_message = null, ?float $timeout = null) - { - error_clear_last(); - if ($timeout !== null) { -diff --git a/generated/oci8.php b/generated/oci8.php -index 4dd35015..e2163514 100644 ---- a/generated/oci8.php -+++ b/generated/oci8.php -@@ -466,7 +466,7 @@ function oci_commit($connection): void - * @throws Oci8Exception - * - */ --function oci_connect(string $username, string $password, string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) -+function oci_connect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) - { - error_clear_last(); - if ($session_mode !== OCI_DEFAULT) { -@@ -786,7 +786,7 @@ function oci_free_statement($statement): void - * @throws Oci8Exception - * - */ --function oci_new_collection($connection, string $type_name, string $schema = null) -+function oci_new_collection($connection, string $type_name, ?string $schema = null) - { - error_clear_last(); - if ($schema !== null) { -@@ -889,7 +889,7 @@ function oci_new_collection($connection, string $type_name, string $schema = nul - * @throws Oci8Exception - * - */ --function oci_new_connect(string $username, string $password, string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) -+function oci_new_connect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) - { - error_clear_last(); - if ($session_mode !== OCI_DEFAULT) { -@@ -1092,7 +1092,7 @@ function oci_parse($connection, string $sql) - * @throws Oci8Exception - * - */ --function oci_pconnect(string $username, string $password, string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) -+function oci_pconnect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) - { - error_clear_last(); - if ($session_mode !== OCI_DEFAULT) { -diff --git a/generated/openssl.php b/generated/openssl.php -index ce7b7265..a47886d4 100644 ---- a/generated/openssl.php -+++ b/generated/openssl.php -@@ -393,7 +393,7 @@ function openssl_csr_get_subject($csr, bool $short_names = true): array - * @throws OpensslException - * - */ --function openssl_csr_new(array $distinguished_names, &$private_key, array $options = null, array $extra_attributes = null) -+function openssl_csr_new(array $distinguished_names, &$private_key, ?array $options = null, ?array $extra_attributes = null) - { - error_clear_last(); - if ($extra_attributes !== null) { -@@ -433,7 +433,7 @@ function openssl_csr_new(array $distinguished_names, &$private_key, array $optio - * @throws OpensslException - * - */ --function openssl_csr_sign($csr, $ca_certificate, $private_key, int $days, array $options = null, int $serial = 0) -+function openssl_csr_sign($csr, $ca_certificate, $private_key, int $days, ?array $options = null, int $serial = 0) - { - error_clear_last(); - if ($serial !== 0) { -@@ -467,7 +467,7 @@ function openssl_csr_sign($csr, $ca_certificate, $private_key, int $days, array - * @throws OpensslException - * - */ --function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", string $tag = null, string $aad = ""): string -+function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", ?string $tag = null, string $aad = ""): string - { - error_clear_last(); - if ($aad !== "") { -@@ -617,7 +617,7 @@ function openssl_get_curve_names(): array - * @throws OpensslException - * - */ --function openssl_open(string $data, ?string &$output, string $encrypted_key, $private_key, string $cipher_algo, string $iv = null): void -+function openssl_open(string $data, ?string &$output, string $encrypted_key, $private_key, string $cipher_algo, ?string $iv = null): void - { - error_clear_last(); - if ($iv !== null) { -@@ -867,7 +867,7 @@ function openssl_pkcs7_read(string $data, ?array &$certificates): void - * @throws OpensslException - * - */ --function openssl_pkcs7_sign(string $input_filename, string $output_filename, $certificate, $private_key, array $headers, int $flags = PKCS7_DETACHED, string $untrusted_certificates_filename = null): void -+function openssl_pkcs7_sign(string $input_filename, string $output_filename, $certificate, $private_key, array $headers, int $flags = PKCS7_DETACHED, ?string $untrusted_certificates_filename = null): void - { - error_clear_last(); - if ($untrusted_certificates_filename !== null) { -@@ -921,7 +921,7 @@ function openssl_pkey_derive($public_key, $private_key, int $key_length = 0): st - * @throws OpensslException - * - */ --function openssl_pkey_export_to_file($key, string $output_filename, ?string $passphrase = null, array $options = null): void -+function openssl_pkey_export_to_file($key, string $output_filename, ?string $passphrase = null, ?array $options = null): void - { - error_clear_last(); - if ($options !== null) { -@@ -952,7 +952,7 @@ function openssl_pkey_export_to_file($key, string $output_filename, ?string $pas - * @throws OpensslException - * - */ --function openssl_pkey_export($key, ?string &$output, ?string $passphrase = null, array $options = null): void -+function openssl_pkey_export($key, ?string &$output, ?string $passphrase = null, ?array $options = null): void - { - error_clear_last(); - if ($options !== null) { -@@ -1074,7 +1074,7 @@ function openssl_pkey_get_public($public_key): \OpenSSLAsymmetricKey - * @throws OpensslException - * - */ --function openssl_pkey_new(array $options = null) -+function openssl_pkey_new(?array $options = null) - { - error_clear_last(); - if ($options !== null) { -diff --git a/generated/pcntl.php b/generated/pcntl.php -index ee593f80..b52d7ddd 100644 ---- a/generated/pcntl.php -+++ b/generated/pcntl.php -@@ -19,7 +19,7 @@ - * @throws PcntlException - * - */ --function pcntl_getpriority(int $process_id = null, int $mode = PRIO_PROCESS): int -+function pcntl_getpriority(?int $process_id = null, int $mode = PRIO_PROCESS): int - { - error_clear_last(); - if ($mode !== PRIO_PROCESS) { -@@ -53,7 +53,7 @@ function pcntl_getpriority(int $process_id = null, int $mode = PRIO_PROCESS): in - * @throws PcntlException - * - */ --function pcntl_setpriority(int $priority, int $process_id = null, int $mode = PRIO_PROCESS): void -+function pcntl_setpriority(int $priority, ?int $process_id = null, int $mode = PRIO_PROCESS): void - { - error_clear_last(); - if ($mode !== PRIO_PROCESS) { -diff --git a/generated/pgsql.php b/generated/pgsql.php -index 9968a5ae..9578e5ce 100644 ---- a/generated/pgsql.php -+++ b/generated/pgsql.php -@@ -297,7 +297,7 @@ function pg_end_copy($connection = null): void - * @throws PgsqlException - * - */ --function pg_execute($connection = null, string $stmtname = null, array $params = null) -+function pg_execute($connection = null, ?string $stmtname = null, ?array $params = null) - { - error_clear_last(); - if ($params !== null) { -@@ -542,7 +542,7 @@ function pg_lo_close($lob): void - * @throws PgsqlException - * - */ --function pg_lo_export($connection = null, int $oid = null, string $pathname = null): void -+function pg_lo_export($connection = null, ?int $oid = null, ?string $pathname = null): void - { - error_clear_last(); - if ($pathname !== null) { -@@ -584,7 +584,7 @@ function pg_lo_export($connection = null, int $oid = null, string $pathname = nu - * @throws PgsqlException - * - */ --function pg_lo_import($connection = null, string $pathname = null, $object_id = null): int -+function pg_lo_import($connection = null, ?string $pathname = null, $object_id = null): int - { - error_clear_last(); - if ($object_id !== null) { -@@ -748,7 +748,7 @@ function pg_lo_unlink($connection, int $oid): void - * @throws PgsqlException - * - */ --function pg_lo_write($lob, string $data, int $length = null): int -+function pg_lo_write($lob, string $data, ?int $length = null): int - { - error_clear_last(); - if ($length !== null) { -@@ -824,7 +824,7 @@ function pg_meta_data($connection, string $table_name, bool $extended = false): - * @throws PgsqlException - * - */ --function pg_parameter_status($connection = null, string $param_name = null): string -+function pg_parameter_status($connection = null, ?string $param_name = null): string - { - error_clear_last(); - if ($param_name !== null) { -@@ -958,7 +958,7 @@ function pg_ping($connection = null): void - * @throws PgsqlException - * - */ --function pg_prepare($connection = null, string $stmtname = null, string $query = null) -+function pg_prepare($connection = null, ?string $stmtname = null, ?string $query = null) - { - error_clear_last(); - if ($query !== null) { -@@ -1000,7 +1000,7 @@ function pg_prepare($connection = null, string $stmtname = null, string $query = - * @throws PgsqlException - * - */ --function pg_put_line($connection = null, string $data = null): void -+function pg_put_line($connection = null, ?string $data = null): void - { - error_clear_last(); - if ($data !== null) { -@@ -1067,7 +1067,7 @@ function pg_put_line($connection = null, string $data = null): void - * @throws PgsqlException - * - */ --function pg_query_params($connection = null, string $query = null, array $params = null) -+function pg_query_params($connection = null, ?string $query = null, ?array $params = null) - { - error_clear_last(); - if ($params !== null) { -@@ -1126,7 +1126,7 @@ function pg_query_params($connection = null, string $query = null, array $params - * @throws PgsqlException - * - */ --function pg_query($connection = null, string $query = null) -+function pg_query($connection = null, ?string $query = null) - { - error_clear_last(); - if ($query !== null) { -diff --git a/generated/ps.php b/generated/ps.php -index 6ead054b..1eaa9774 100644 ---- a/generated/ps.php -+++ b/generated/ps.php -@@ -778,7 +778,7 @@ function ps_fill($psdoc): void - * @throws PsException - * - */ --function ps_get_parameter($psdoc, string $name, float $modifier = null): string -+function ps_get_parameter($psdoc, string $name, ?float $modifier = null): string - { - error_clear_last(); - if ($modifier !== null) { -@@ -925,7 +925,7 @@ function ps_new() - * @throws PsException - * - */ --function ps_open_file($psdoc, string $filename = null): void -+function ps_open_file($psdoc, ?string $filename = null): void - { - error_clear_last(); - if ($filename !== null) { -diff --git a/generated/readline.php b/generated/readline.php -index d8b82181..6e202f50 100644 ---- a/generated/readline.php -+++ b/generated/readline.php -@@ -90,7 +90,7 @@ function readline_completion_function(callable $callback): void - * @throws ReadlineException - * - */ --function readline_read_history(string $filename = null): void -+function readline_read_history(?string $filename = null): void - { - error_clear_last(); - if ($filename !== null) { -@@ -111,7 +111,7 @@ function readline_read_history(string $filename = null): void - * @throws ReadlineException - * - */ --function readline_write_history(string $filename = null): void -+function readline_write_history(?string $filename = null): void - { - error_clear_last(); - if ($filename !== null) { -diff --git a/generated/rrd.php b/generated/rrd.php -index c119df9b..a68379af 100644 ---- a/generated/rrd.php -+++ b/generated/rrd.php -@@ -115,7 +115,7 @@ function rrd_lastupdate(string $filename): array - * @throws RrdException - * - */ --function rrd_restore(string $xml_file, string $rrd_file, array $options = null): void -+function rrd_restore(string $xml_file, string $rrd_file, ?array $options = null): void - { - error_clear_last(); - if ($options !== null) { -diff --git a/generated/sem.php b/generated/sem.php -index 86d0ae81..f1dd64e5 100644 ---- a/generated/sem.php -+++ b/generated/sem.php -@@ -442,7 +442,7 @@ function sem_remove($semaphore): void - * @throws SemException - * - */ --function shm_attach(int $key, int $size = null, int $permissions = 0666) -+function shm_attach(int $key, ?int $size = null, int $permissions = 0666) - { - error_clear_last(); - if ($permissions !== 0666) { -diff --git a/generated/session.php b/generated/session.php -index 35e7f843..cb1a8991 100644 ---- a/generated/session.php -+++ b/generated/session.php -@@ -149,7 +149,7 @@ function session_encode(): string - * @throws SessionException - * - */ --function session_id(string $id = null): string -+function session_id(?string $id = null): string - { - error_clear_last(); - if ($id !== null) { -@@ -178,7 +178,7 @@ function session_id(string $id = null): string - * @throws SessionException - * - */ --function session_module_name(string $module = null): string -+function session_module_name(?string $module = null): string - { - error_clear_last(); - if ($module !== null) { -@@ -235,7 +235,7 @@ function session_module_name(string $module = null): string - * @throws SessionException - * - */ --function session_name(string $name = null): string -+function session_name(?string $name = null): string - { - error_clear_last(); - if ($name !== null) { -@@ -316,7 +316,7 @@ function session_reset(): void - * @throws SessionException - * - */ --function session_save_path(string $path = null): string -+function session_save_path(?string $path = null): string - { - error_clear_last(); - if ($path !== null) { -diff --git a/generated/sockets.php b/generated/sockets.php -index 0a0d36ad..7e16612e 100644 ---- a/generated/sockets.php -+++ b/generated/sockets.php -@@ -167,7 +167,7 @@ function socket_bind($socket, string $address, int $port = 0): void - * @throws SocketsException - * - */ --function socket_connect($socket, string $address, int $port = null): void -+function socket_connect($socket, string $address, ?int $port = null): void - { - error_clear_last(); - if ($port !== null) { -@@ -652,7 +652,7 @@ function socket_sendmsg($socket, array $message, int $flags = 0): int - * @throws SocketsException - * - */ --function socket_sendto($socket, string $data, int $length, int $flags, string $address, int $port = null): int -+function socket_sendto($socket, string $data, int $length, int $flags, string $address, ?int $port = null): int - { - error_clear_last(); - if ($port !== null) { -diff --git a/generated/spl.php b/generated/spl.php -index 2d692220..802f21b8 100644 ---- a/generated/spl.php -+++ b/generated/spl.php -@@ -96,7 +96,7 @@ function class_uses($object_or_class, bool $autoload = true): array - * @throws SplException - * - */ --function spl_autoload_register(callable $callback = null, bool $throw = true, bool $prepend = false): void -+function spl_autoload_register(?callable $callback = null, bool $throw = true, bool $prepend = false): void - { - error_clear_last(); - if ($prepend !== false) { -diff --git a/generated/sqlsrv.php b/generated/sqlsrv.php -index 33dd9124..427f0a42 100644 ---- a/generated/sqlsrv.php -+++ b/generated/sqlsrv.php -@@ -251,7 +251,7 @@ function sqlsrv_free_stmt($stmt): void - * @throws SqlsrvException - * - */ --function sqlsrv_get_field($stmt, int $fieldIndex, int $getAsType = null) -+function sqlsrv_get_field($stmt, int $fieldIndex, ?int $getAsType = null) - { - error_clear_last(); - if ($getAsType !== null) { -@@ -357,7 +357,7 @@ function sqlsrv_num_rows($stmt): int - * @throws SqlsrvException - * - */ --function sqlsrv_prepare($conn, string $sql, array $params = null, array $options = null) -+function sqlsrv_prepare($conn, string $sql, ?array $params = null, ?array $options = null) - { - error_clear_last(); - if ($options !== null) { -@@ -394,7 +394,7 @@ function sqlsrv_prepare($conn, string $sql, array $params = null, array $options - * @throws SqlsrvException - * - */ --function sqlsrv_query($conn, string $sql, array $params = null, array $options = null) -+function sqlsrv_query($conn, string $sql, ?array $params = null, ?array $options = null) - { - error_clear_last(); - if ($options !== null) { -diff --git a/generated/ssh2.php b/generated/ssh2.php -index edee699c..59329f3f 100644 ---- a/generated/ssh2.php -+++ b/generated/ssh2.php -@@ -39,7 +39,7 @@ function ssh2_auth_agent($session, string $username): void - * @throws Ssh2Exception - * - */ --function ssh2_auth_hostbased_file($session, string $username, string $hostname, string $pubkeyfile, string $privkeyfile, string $passphrase = null, string $local_username = null): void -+function ssh2_auth_hostbased_file($session, string $username, string $hostname, string $pubkeyfile, string $privkeyfile, ?string $passphrase = null, ?string $local_username = null): void - { - error_clear_last(); - if ($local_username !== null) { -@@ -91,7 +91,7 @@ function ssh2_auth_password($session, string $username, string $password): void - * @throws Ssh2Exception - * - */ --function ssh2_auth_pubkey_file($session, string $username, string $pubkeyfile, string $privkeyfile, string $passphrase = null): void -+function ssh2_auth_pubkey_file($session, string $username, string $pubkeyfile, string $privkeyfile, ?string $passphrase = null): void - { - error_clear_last(); - if ($passphrase !== null) { -@@ -304,7 +304,7 @@ function ssh2_auth_pubkey_file($session, string $username, string $pubkeyfile, s - * @throws Ssh2Exception - * - */ --function ssh2_connect(string $host, int $port = 22, array $methods = null, array $callbacks = null) -+function ssh2_connect(string $host, int $port = 22, ?array $methods = null, ?array $callbacks = null) - { - error_clear_last(); - if ($callbacks !== null) { -@@ -357,7 +357,7 @@ function ssh2_disconnect($session): void - * @throws Ssh2Exception - * - */ --function ssh2_exec($session, string $command, string $pty = null, array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) -+function ssh2_exec($session, string $command, ?string $pty = null, ?array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) - { - error_clear_last(); - if ($width_height_type !== SSH2_TERM_UNIT_CHARS) { -@@ -410,7 +410,7 @@ function ssh2_forward_accept($listener) - * @throws Ssh2Exception - * - */ --function ssh2_forward_listen($session, int $port, string $host = null, int $max_connections = 16) -+function ssh2_forward_listen($session, int $port, ?string $host = null, int $max_connections = 16) - { - error_clear_last(); - if ($max_connections !== 16) { -@@ -442,7 +442,7 @@ function ssh2_forward_listen($session, int $port, string $host = null, int $max_ - * @throws Ssh2Exception - * - */ --function ssh2_publickey_add($pkey, string $algoname, string $blob, bool $overwrite = false, array $attributes = null): void -+function ssh2_publickey_add($pkey, string $algoname, string $blob, bool $overwrite = false, ?array $attributes = null): void - { - error_clear_last(); - if ($attributes !== null) { -@@ -728,7 +728,7 @@ function ssh2_sftp($session) - * @throws Ssh2Exception - * - */ --function ssh2_shell($session, string $term_type = "vanilla", array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) -+function ssh2_shell($session, string $term_type = "vanilla", ?array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) - { - error_clear_last(); - if ($width_height_type !== SSH2_TERM_UNIT_CHARS) { -diff --git a/generated/stream.php b/generated/stream.php -index e025221c..11a4c0be 100644 ---- a/generated/stream.php -+++ b/generated/stream.php -@@ -39,7 +39,7 @@ function stream_context_set_params($context, array $params): void - * @throws StreamException - * - */ --function stream_copy_to_stream($from, $to, int $length = null, int $offset = 0): int -+function stream_copy_to_stream($from, $to, ?int $length = null, int $offset = 0): int - { - error_clear_last(); - if ($offset !== 0) { -@@ -87,7 +87,7 @@ function stream_copy_to_stream($from, $to, int $length = null, int $offset = 0): - * @throws StreamException - * - */ --function stream_filter_append($stream, string $filtername, int $read_write = null, $params = null) -+function stream_filter_append($stream, string $filtername, ?int $read_write = null, $params = null) - { - error_clear_last(); - if ($params !== null) { -@@ -136,7 +136,7 @@ function stream_filter_append($stream, string $filtername, int $read_write = nul - * @throws StreamException - * - */ --function stream_filter_prepend($stream, string $filtername, int $read_write = null, $params = null) -+function stream_filter_prepend($stream, string $filtername, ?int $read_write = null, $params = null) - { - error_clear_last(); - if ($params !== null) { -@@ -218,7 +218,7 @@ function stream_filter_remove($stream_filter): void - * @throws StreamException - * - */ --function stream_get_contents($stream, int $length = null, int $offset = -1): string -+function stream_get_contents($stream, ?int $length = null, int $offset = -1): string - { - error_clear_last(); - if ($offset !== -1) { -@@ -376,7 +376,7 @@ function stream_set_timeout($stream, int $seconds, int $microseconds = 0): void - * @throws StreamException - * - */ --function stream_socket_accept($socket, float $timeout = null, ?string &$peer_name = null) -+function stream_socket_accept($socket, ?float $timeout = null, ?string &$peer_name = null) - { - error_clear_last(); - if ($peer_name !== null) { -@@ -443,7 +443,7 @@ function stream_socket_accept($socket, float $timeout = null, ?string &$peer_nam - * @throws StreamException - * - */ --function stream_socket_client(string $address, ?int &$error_code = null, ?string &$error_message = null, float $timeout = null, int $flags = STREAM_CLIENT_CONNECT, $context = null) -+function stream_socket_client(string $address, ?int &$error_code = null, ?string &$error_message = null, ?float $timeout = null, int $flags = STREAM_CLIENT_CONNECT, $context = null) - { - error_clear_last(); - if ($context !== null) { -diff --git a/generated/swoole.php b/generated/swoole.php -index 510e6377..3e9d4dc5 100644 ---- a/generated/swoole.php -+++ b/generated/swoole.php -@@ -54,7 +54,7 @@ function swoole_async_readfile(string $filename, string $callback): void - * @throws SwooleException - * - */ --function swoole_async_write(string $filename, string $content, int $offset = null, callable $callback = null): void -+function swoole_async_write(string $filename, string $content, ?int $offset = null, ?callable $callback = null): void - { - error_clear_last(); - if ($callback !== null) { -@@ -80,7 +80,7 @@ function swoole_async_write(string $filename, string $content, int $offset = nul - * @throws SwooleException - * - */ --function swoole_async_writefile(string $filename, string $content, callable $callback = null, int $flags = 0): void -+function swoole_async_writefile(string $filename, string $content, ?callable $callback = null, int $flags = 0): void - { - error_clear_last(); - if ($flags !== 0) { -diff --git a/generated/uodbc.php b/generated/uodbc.php -index df6a9afa..5d25f858 100644 ---- a/generated/uodbc.php -+++ b/generated/uodbc.php -@@ -237,7 +237,7 @@ function odbc_columnprivileges($odbc, string $catalog, string $schema, string $t - * @throws UodbcException - * - */ --function odbc_columns($odbc, string $catalog = null, string $schema = null, string $table = null, string $column = null) -+function odbc_columns($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $column = null) - { - error_clear_last(); - if ($column !== null) { -@@ -798,7 +798,7 @@ function odbc_primarykeys($odbc, string $catalog, string $schema, string $table) - * @throws UodbcException - * - */ --function odbc_procedurecolumns($odbc, string $catalog = null, string $schema = null, string $procedure = null, string $column = null) -+function odbc_procedurecolumns($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null, ?string $column = null) - { - error_clear_last(); - if ($column !== null) { -@@ -851,7 +851,7 @@ function odbc_procedurecolumns($odbc, string $catalog = null, string $schema = n - * @throws UodbcException - * - */ --function odbc_procedures($odbc, string $catalog = null, string $schema = null, string $procedure = null) -+function odbc_procedures($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null) - { - error_clear_last(); - if ($procedure !== null) { -@@ -1181,7 +1181,7 @@ function odbc_tableprivileges($odbc, string $catalog, string $schema, string $ta - * @throws UodbcException - * - */ --function odbc_tables($odbc, string $catalog = null, string $schema = null, string $table = null, string $types = null) -+function odbc_tables($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $types = null) - { - error_clear_last(); - if ($types !== null) { -diff --git a/generated/xdiff.php b/generated/xdiff.php -index 785b2278..00ccde35 100644 ---- a/generated/xdiff.php -+++ b/generated/xdiff.php -@@ -219,7 +219,7 @@ function xdiff_string_patch_binary(string $str, string $patch): string - * @throws XdiffException - * - */ --function xdiff_string_patch(string $str, string $patch, int $flags = null, ?string &$error = null): string -+function xdiff_string_patch(string $str, string $patch, ?int $flags = null, ?string &$error = null): string - { - error_clear_last(); - if ($error !== null) { -diff --git a/generated/yaml.php b/generated/yaml.php -index ba518e9e..2427d04c 100644 ---- a/generated/yaml.php -+++ b/generated/yaml.php -@@ -23,7 +23,7 @@ - * @throws YamlException - * - */ --function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, array $callbacks = null) -+function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, ?array $callbacks = null) - { - error_clear_last(); - if ($callbacks !== null) { -@@ -60,7 +60,7 @@ function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, ar - * @throws YamlException - * - */ --function yaml_parse_url(string $url, int $pos = 0, ?int &$ndocs = null, array $callbacks = null) -+function yaml_parse_url(string $url, int $pos = 0, ?int &$ndocs = null, ?array $callbacks = null) - { - error_clear_last(); - if ($callbacks !== null) { -@@ -94,7 +94,7 @@ function yaml_parse_url(string $url, int $pos = 0, ?int &$ndocs = null, array $c - * @throws YamlException - * - */ --function yaml_parse(string $input, int $pos = 0, ?int &$ndocs = null, array $callbacks = null) -+function yaml_parse(string $input, int $pos = 0, ?int &$ndocs = null, ?array $callbacks = null) - { - error_clear_last(); - if ($callbacks !== null) { -diff --git a/generated/yaz.php b/generated/yaz.php -index 4730dd0b..ce5dd4d0 100644 ---- a/generated/yaz.php -+++ b/generated/yaz.php -@@ -427,7 +427,7 @@ function yaz_search($id, string $type, string $query): void - * @throws YazException - * - */ --function yaz_wait(array &$options = null) -+function yaz_wait(?array &$options = null) - { - error_clear_last(); - $safeResult = \yaz_wait($options); -diff --git a/generated/zlib.php b/generated/zlib.php -index daa555ab..6c78d50f 100644 ---- a/generated/zlib.php -+++ b/generated/zlib.php -@@ -298,7 +298,7 @@ function gzfile(string $filename, int $use_include_path = 0): array - * @throws ZlibException - * - */ --function gzgets($stream, int $length = null): string -+function gzgets($stream, ?int $length = null): string - { - error_clear_last(); - if ($length !== null) { -@@ -327,7 +327,7 @@ function gzgets($stream, int $length = null): string - * @throws ZlibException - * - */ --function gzgetss($zp, int $length, string $allowable_tags = null): string -+function gzgetss($zp, int $length, ?string $allowable_tags = null): string - { - error_clear_last(); - if ($allowable_tags !== null) { -@@ -508,7 +508,7 @@ function gzuncompress(string $data, int $max_length = 0): string - * @throws ZlibException - * - */ --function gzwrite($stream, string $data, int $length = null): int -+function gzwrite($stream, string $data, ?int $length = null): int - { - error_clear_last(); - if ($length !== null) { diff --git a/vendor-bin/php-scoper/patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch.license b/vendor-bin/php-scoper/patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch.license deleted file mode 100644 index 70922b2800..0000000000 --- a/vendor-bin/php-scoper/patches/blizzz_safe_6eeee2a20ffb2be3456ae8615b227c78e1ca8a20.patch.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2025 TheCodingMachine/safe contributors -SPDX-License-Identifier: MIT diff --git a/vendor-bin/php-scoper/patches/thecodingmachine_safe_464.patch b/vendor-bin/php-scoper/patches/thecodingmachine_safe_464.patch deleted file mode 100644 index 550fbf2323..0000000000 --- a/vendor-bin/php-scoper/patches/thecodingmachine_safe_464.patch +++ /dev/null @@ -1,87 +0,0 @@ -From 5ea2d45dc2adf44992577f50e2f7ee3d9ca3c956 Mon Sep 17 00:00:00 2001 -From: Shish -Date: Thu, 28 Nov 2024 08:22:38 +0000 -Subject: [PATCH] Bring deprecated override files up to php8.4 syntax - -(Breaking shish/safe changes down into smaller changes for easier review) - -I also note that many of these are deprecated since php8.0 - at what point do we want to delete them? - -Co-authored-by: Ayesh ---- - deprecated/datetime.php | 4 ++-- - deprecated/mssql.php | 4 ++-- - deprecated/password.php | 2 +- - deprecated/strings.php | 2 +- - 4 files changed, 6 insertions(+), 6 deletions(-) - -diff --git a/deprecated/datetime.php b/deprecated/datetime.php -index 012b0f7c..f511a3a7 100644 ---- a/deprecated/datetime.php -+++ b/deprecated/datetime.php -@@ -21,7 +21,7 @@ - * @deprecated The Safe version of this function is no longer needed in PHP 8.0+ - * - */ --function gmdate(string $format, int $timestamp = null): string -+function gmdate(string $format, ?int $timestamp = null): string - { - error_clear_last(); - if ($timestamp !== null) { -@@ -75,7 +75,7 @@ function gmdate(string $format, int $timestamp = null): string - * @deprecated The Safe version of this function is no longer needed in PHP 8.0+ - * - */ --function mktime(int $hour, int $minute = null, int $second = null, int $month = null, int $day = null, int $year = null): int -+function mktime(int $hour, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null): int - { - error_clear_last(); - if ($year !== null) { -diff --git a/deprecated/mssql.php b/deprecated/mssql.php -index 234ef56b..aa44ad0d 100644 ---- a/deprecated/mssql.php -+++ b/deprecated/mssql.php -@@ -97,7 +97,7 @@ function mssql_close($link_identifier = null): void - * @throws MssqlException - * - */ --function mssql_connect(string $servername = null, string $username = null, string $password = null, bool $new_link = false) -+function mssql_connect(?string $servername = null, ?string $username = null, ?string $password = null, bool $new_link = false) - { - error_clear_last(); - if ($new_link !== false) { -@@ -330,7 +330,7 @@ function mssql_init(string $sp_name, $link_identifier = null) - * @throws MssqlException - * - */ --function mssql_pconnect(string $servername = null, string $username = null, string $password = null, bool $new_link = false) -+function mssql_pconnect(?string $servername = null, ?string $username = null, ?string $password = null, bool $new_link = false) - { - error_clear_last(); - if ($new_link !== false) { -diff --git a/deprecated/password.php b/deprecated/password.php -index 87d85a7b..10f8b2f2 100644 ---- a/deprecated/password.php -+++ b/deprecated/password.php -@@ -112,7 +112,7 @@ - * @deprecated The Safe version of this function is no longer needed in PHP 8.0+ - * - */ --function password_hash(string $password, $algo, array $options = null): string -+function password_hash(string $password, $algo, ?array $options = null): string - { - error_clear_last(); - if ($options !== null) { -diff --git a/deprecated/strings.php b/deprecated/strings.php -index de0c2e60..9e273237 100644 ---- a/deprecated/strings.php -+++ b/deprecated/strings.php -@@ -361,7 +361,7 @@ function sprintf(string $format, ...$params): string - * @deprecated The Safe version of this function is no longer needed in PHP 8.0+ - * - */ --function substr(string $string, int $start, int $length = null): string -+function substr(string $string, int $start, ?int $length = null): string - { - error_clear_last(); - if ($length !== null) { diff --git a/vendor-bin/php-scoper/patches/thecodingmachine_safe_464.patch.license b/vendor-bin/php-scoper/patches/thecodingmachine_safe_464.patch.license deleted file mode 100644 index a90dcee7eb..0000000000 --- a/vendor-bin/php-scoper/patches/thecodingmachine_safe_464.patch.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2024 TheCodingMachine/safe contributors -SPDX-License-Identifier: MIT diff --git a/vendor-bin/php-scoper/patches/thecodingmachine_safe_466.patch b/vendor-bin/php-scoper/patches/thecodingmachine_safe_466.patch deleted file mode 100644 index 1c4c538cc0..0000000000 --- a/vendor-bin/php-scoper/patches/thecodingmachine_safe_466.patch +++ /dev/null @@ -1,149 +0,0 @@ -From e179fe7b8779ca9782c6583be5735254d119c2ee Mon Sep 17 00:00:00 2001 -From: Shish -Date: Thu, 28 Nov 2024 08:28:44 +0000 -Subject: [PATCH] Bring lib/ up to php8.4 standards - -(Breaking the diff against shish/safe into smaller parts for easier reviewing) ---- - lib/Exceptions/CurlException.php | 1 - - lib/Exceptions/JsonException.php | 1 - - lib/Exceptions/OpensslException.php | 1 - - lib/Exceptions/PcreException.php | 3 +-- - lib/Exceptions/SafeExceptionInterface.php | 2 -- - lib/Exceptions/SimplexmlException.php | 1 + - lib/special_cases.php | 12 ++++++------ - 7 files changed, 8 insertions(+), 13 deletions(-) - -diff --git a/lib/Exceptions/CurlException.php b/lib/Exceptions/CurlException.php -index 3401b57b..802c37df 100644 ---- a/lib/Exceptions/CurlException.php -+++ b/lib/Exceptions/CurlException.php -@@ -1,6 +1,5 @@ - 'PREG_BAD_UTF8_OFFSET_ERROR', - PREG_JIT_STACKLIMIT_ERROR => 'PREG_JIT_STACKLIMIT_ERROR', - ]; -- $errMsg = $errorMap[preg_last_error()] ?? 'Unknown PCRE error: '.preg_last_error(); -+ $errMsg = $errorMap[preg_last_error()] ?? 'Unknown PCRE error: ' . preg_last_error(); - return new self($errMsg, \preg_last_error()); - } - } -diff --git a/lib/Exceptions/SafeExceptionInterface.php b/lib/Exceptions/SafeExceptionInterface.php -index fbea6ad2..cc7f71fc 100644 ---- a/lib/Exceptions/SafeExceptionInterface.php -+++ b/lib/Exceptions/SafeExceptionInterface.php -@@ -1,9 +1,7 @@ - = 80100) { -- /** @phpstan-ignore-next-line */ - $result = \fputcsv($stream, $fields, $separator, $enclosure, $escape, $eol); - } else { - $result = \fputcsv($stream, $fields, $separator, $enclosure, $escape); -@@ -431,7 +431,7 @@ function fputcsv($stream, array $fields, string $separator = ",", string $enclos - * @throws FilesystemException - * - */ --function fgetcsv($stream, int $length = null, string $separator = ",", string $enclosure = "\"", string $escape = "\\"): array|false -+function fgetcsv($stream, ?int $length = null, string $separator = ",", string $enclosure = "\"", string $escape = "\\"): array|false - { - error_clear_last(); - $safeResult = \fgetcsv($stream, $length, $separator, $enclosure, $escape); diff --git a/vendor-bin/php-scoper/patches/thecodingmachine_safe_466.patch.license b/vendor-bin/php-scoper/patches/thecodingmachine_safe_466.patch.license deleted file mode 100644 index a90dcee7eb..0000000000 --- a/vendor-bin/php-scoper/patches/thecodingmachine_safe_466.patch.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2024 TheCodingMachine/safe contributors -SPDX-License-Identifier: MIT