From 57875da3b7b2bc5668abc842cd8065f5c0140e4e Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Fri, 24 Apr 2026 13:24:35 +0100 Subject: [PATCH 1/3] tidy: Gt->GT --- composer.json | 2 + composer.lock | 179 +++++++++--------- src/ArrayBuffer.php | 2 +- src/Blob.php | 2 +- src/DefaultPort.php | 2 +- src/File.php | 2 +- src/FormData.php | 2 +- src/Header/HeaderLine.php | 2 +- src/Header/Headers.php | 2 +- src/Header/Parser.php | 2 +- src/Header/RequestHeaders.php | 2 +- src/Header/ResponseHeaders.php | 2 +- src/HttpException.php | 2 +- src/IntegrityMismatchException.php | 2 +- src/InvalidIntegrityAlgorithmException.php | 2 +- src/InvalidProtocolHttpException.php | 2 +- src/InvalidRequestMethodHttpException.php | 2 +- src/KeyValuePairStore.php | 2 +- src/Message.php | 4 +- src/PortOutOfBoundsException.php | 2 +- src/Request.php | 4 +- src/RequestFactory.php | 4 +- src/RequestMethod.php | 2 +- src/Response.php | 24 +-- src/ResponseFactory.php | 2 +- .../ClientError/ClientErrorException.php | 4 +- .../ClientError/HttpBadRequest.php | 4 +- .../ClientError/HttpConflict.php | 4 +- .../ClientError/HttpExpectationFailed.php | 4 +- .../ClientError/HttpFailedDependency.php | 4 +- .../ClientError/HttpForbidden.php | 4 +- .../ClientError/HttpGone.php | 4 +- .../ClientError/HttpImATeapot.php | 4 +- .../ClientError/HttpLengthRequired.php | 4 +- .../ClientError/HttpLocked.php | 4 +- .../ClientError/HttpMethodNotAllowed.php | 4 +- .../ClientError/HttpMisdirectedRequest.php | 4 +- .../ClientError/HttpNotAcceptable.php | 4 +- .../ClientError/HttpNotFound.php | 4 +- .../ClientError/HttpPayloadTooLarge.php | 4 +- .../ClientError/HttpPaymentRequired.php | 4 +- .../ClientError/HttpPreconditionFailed.php | 4 +- .../ClientError/HttpPreconditionRequired.php | 4 +- .../HttpProxyAuthenticationRequired.php | 4 +- .../ClientError/HttpRangeNotSatisfiable.php | 4 +- .../HttpRequestHeaderFieldsTooLarge.php | 4 +- .../ClientError/HttpRequestTimeout.php | 4 +- .../ClientError/HttpTooEarly.php | 4 +- .../ClientError/HttpTooManyRequests.php | 4 +- .../ClientError/HttpUnauthorized.php | 4 +- .../HttpUnavailableForLegalReasons.php | 4 +- .../ClientError/HttpUnprocessableEntity.php | 4 +- .../ClientError/HttpUnsupportedMediaType.php | 4 +- .../ClientError/HttpUpgradeRequired.php | 4 +- .../ClientError/HttpUriTooLong.php | 4 +- .../Redirection/HttpFound.php | 4 +- .../Redirection/HttpMovedPermanently.php | 4 +- .../Redirection/HttpMultipleChoices.php | 4 +- .../Redirection/HttpNotModified.php | 4 +- .../Redirection/HttpPermanentRedirect.php | 4 +- .../Redirection/HttpSeeOther.php | 4 +- .../Redirection/HttpTemporaryRedirect.php | 4 +- .../Redirection/RedirectionException.php | 4 +- .../ResponseStatusException.php | 4 +- .../ServerError/HttpBadGateway.php | 4 +- .../ServerError/HttpGatewayTimeout.php | 4 +- .../ServerError/HttpInsufficientStorage.php | 4 +- .../ServerError/HttpInternalServerError.php | 4 +- .../ServerError/HttpLoopDetected.php | 4 +- .../HttpNetworkAuthenticationRequired.php | 4 +- .../ServerError/HttpNotExtended.php | 4 +- .../ServerError/HttpNotImplemented.php | 4 +- .../ServerError/HttpVariantAlsoNegotiates.php | 4 +- .../ServerError/HttpVersionNotSupported.php | 4 +- .../ServerError/ServerErrorException.php | 4 +- .../ServerError/ServiceUnavailable.php | 4 +- src/ServerInfo.php | 2 +- src/ServerRequest.php | 6 +- src/StatusCode.php | 2 +- src/Stream.php | 2 +- src/StreamException.php | 2 +- src/StreamNotOpenableException.php | 2 +- src/URLSearchParams.php | 2 +- src/UnknownAcceptHeaderException.php | 2 +- src/Uri.php | 2 +- src/UriFactory.php | 2 +- src/UriParseErrorException.php | 2 +- src/UriResolver.php | 2 +- test/phpunit/FormDataTest.php | 10 +- test/phpunit/Header/HeaderLineTest.php | 4 +- test/phpunit/Header/HeadersTest.php | 6 +- test/phpunit/Header/ParserTest.php | 4 +- test/phpunit/MessageTest.php | 12 +- test/phpunit/RequestFactoryTest.php | 6 +- test/phpunit/RequestTest.php | 16 +- test/phpunit/ResponseFactoryTest.php | 10 +- test/phpunit/ResponseTest.php | 28 +-- test/phpunit/ServerInfoTest.php | 4 +- test/phpunit/ServerRequestTest.php | 12 +- test/phpunit/SteamTest.php | 8 +- test/phpunit/URLSearchParamsTest.php | 6 +- test/phpunit/UriTest.php | 10 +- 102 files changed, 317 insertions(+), 306 deletions(-) diff --git a/composer.json b/composer.json index a6a602d..8f8df5b 100644 --- a/composer.json +++ b/composer.json @@ -27,11 +27,13 @@ "autoload": { "psr-4": { + "GT\\Http\\": "./src", "Gt\\Http\\": "./src" } }, "autoload-dev": { "psr-4": { + "GT\\Http\\Test\\": "./test/phpunit", "Gt\\Http\\Test\\": "./test/phpunit" } }, diff --git a/composer.lock b/composer.lock index 655db44..b3c9bc6 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "justinrainbow/json-schema", - "version": "v6.7.2", + "version": "6.8.0", "source": { "type": "git", "url": "https://github.com/jsonrainbow/json-schema.git", - "reference": "6fea66c7204683af437864e7c4e7abf383d14bc0" + "reference": "89ac92bcfe5d0a8a4433c7b89d394553ae7250cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/6fea66c7204683af437864e7c4e7abf383d14bc0", - "reference": "6fea66c7204683af437864e7c4e7abf383d14bc0", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/89ac92bcfe5d0a8a4433c7b89d394553ae7250cc", + "reference": "89ac92bcfe5d0a8a4433c7b89d394553ae7250cc", "shasum": "" }, "require": { @@ -77,9 +77,9 @@ ], "support": { "issues": "https://github.com/jsonrainbow/json-schema/issues", - "source": "https://github.com/jsonrainbow/json-schema/tree/v6.7.2" + "source": "https://github.com/jsonrainbow/json-schema/tree/6.8.0" }, - "time": "2026-02-15T15:06:22+00:00" + "time": "2026-04-02T12:43:11+00:00" }, { "name": "marc-mabe/php-enum", @@ -156,16 +156,16 @@ }, { "name": "phpgt/async", - "version": "v1.0.1", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/phpgt/Async.git", - "reference": "3daab887eacd04d297a1383a22957f0ab7ecaf68" + "reference": "12a032eb8800747395d1aa976193d46378eb7781" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Async/zipball/3daab887eacd04d297a1383a22957f0ab7ecaf68", - "reference": "3daab887eacd04d297a1383a22957f0ab7ecaf68", + "url": "https://api.github.com/repos/phpgt/Async/zipball/12a032eb8800747395d1aa976193d46378eb7781", + "reference": "12a032eb8800747395d1aa976193d46378eb7781", "shasum": "" }, "require": { @@ -182,6 +182,7 @@ "type": "library", "autoload": { "psr-4": { + "GT\\Async\\": "./src", "Gt\\Async\\": "./src" } }, @@ -192,28 +193,28 @@ "description": "Promise-based non-blocking operations.", "support": { "issues": "https://github.com/phpgt/Async/issues", - "source": "https://github.com/phpgt/Async/tree/v1.0.1" + "source": "https://github.com/phpgt/Async/tree/v1.0.2" }, "funding": [ { - "url": "https://github.com/phpgt", + "url": "https://github.com/sponsors/PhpGt", "type": "github" } ], - "time": "2025-03-07T17:26:32+00:00" + "time": "2026-04-16T16:17:36+00:00" }, { "name": "phpgt/curl", - "version": "v3.2.1", + "version": "v3.2.2", "source": { "type": "git", "url": "https://github.com/phpgt/Curl.git", - "reference": "125cc2d2eef8656913c13dd11fb451115dc5de9f" + "reference": "86338d0be868c775b62250357e8fba47b0dcf5fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Curl/zipball/125cc2d2eef8656913c13dd11fb451115dc5de9f", - "reference": "125cc2d2eef8656913c13dd11fb451115dc5de9f", + "url": "https://api.github.com/repos/phpgt/Curl/zipball/86338d0be868c775b62250357e8fba47b0dcf5fd", + "reference": "86338d0be868c775b62250357e8fba47b0dcf5fd", "shasum": "" }, "require": { @@ -254,7 +255,7 @@ ], "support": { "issues": "https://github.com/phpgt/Curl/issues", - "source": "https://github.com/phpgt/Curl/tree/v3.2.1" + "source": "https://github.com/phpgt/Curl/tree/v3.2.2" }, "funding": [ { @@ -262,20 +263,20 @@ "type": "github" } ], - "time": "2026-03-18T22:36:08+00:00" + "time": "2026-04-19T15:25:00+00:00" }, { "name": "phpgt/dataobject", - "version": "v1.1.0", + "version": "v1.1.1", "source": { "type": "git", - "url": "https://github.com/PhpGt/DataObject.git", - "reference": "534b593617e40f62ba5ea5a399797e4b0107a40a" + "url": "https://github.com/phpgt/DataObject.git", + "reference": "fc1918f2c1a9f3329d8d80bd01f3658cf07961ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PhpGt/DataObject/zipball/534b593617e40f62ba5ea5a399797e4b0107a40a", - "reference": "534b593617e40f62ba5ea5a399797e4b0107a40a", + "url": "https://api.github.com/repos/phpgt/DataObject/zipball/fc1918f2c1a9f3329d8d80bd01f3658cf07961ba", + "reference": "fc1918f2c1a9f3329d8d80bd01f3658cf07961ba", "shasum": "" }, "require": { @@ -285,13 +286,14 @@ }, "require-dev": { "phpmd/phpmd": "^2.13", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2.1", "phpunit/phpunit": "^10.1", - "squizlabs/php_codesniffer": "^3.7" + "squizlabs/php_codesniffer": "^4.0" }, "type": "library", "autoload": { "psr-4": { + "GT\\DataObject\\": "./src", "Gt\\DataObject\\": "./src" } }, @@ -307,29 +309,29 @@ ], "description": " Structured, type-safe, immutable data transfer.", "support": { - "issues": "https://github.com/PhpGt/DataObject/issues", - "source": "https://github.com/PhpGt/DataObject/tree/v1.1.0" + "issues": "https://github.com/phpgt/DataObject/issues", + "source": "https://github.com/phpgt/DataObject/tree/v1.1.1" }, "funding": [ { - "url": "https://github.com/phpgt", + "url": "https://github.com/sponsors/phpgt", "type": "github" } ], - "time": "2025-02-14T16:43:15+00:00" + "time": "2026-04-21T12:24:50+00:00" }, { "name": "phpgt/input", - "version": "v1.3.2", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/phpgt/Input.git", - "reference": "cb6780cbed5f7de2366fba85bb6b695f6143298b" + "reference": "7710776d7437d3e24f37bb786236ff0c3da20785" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Input/zipball/cb6780cbed5f7de2366fba85bb6b695f6143298b", - "reference": "cb6780cbed5f7de2366fba85bb6b695f6143298b", + "url": "https://api.github.com/repos/phpgt/Input/zipball/7710776d7437d3e24f37bb786236ff0c3da20785", + "reference": "7710776d7437d3e24f37bb786236ff0c3da20785", "shasum": "" }, "require": { @@ -344,8 +346,14 @@ "squizlabs/php_codesniffer": "^3.7" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, "autoload": { "psr-4": { + "GT\\Input\\": "./src", "Gt\\Input\\": "./src" } }, @@ -356,7 +364,7 @@ "description": "Encapsulated user input.", "support": { "issues": "https://github.com/phpgt/Input/issues", - "source": "https://github.com/phpgt/Input/tree/v1.3.2" + "source": "https://github.com/phpgt/Input/tree/v1.4.0" }, "funding": [ { @@ -364,20 +372,20 @@ "type": "github" } ], - "time": "2025-05-02T11:54:06+00:00" + "time": "2026-04-14T20:44:25+00:00" }, { "name": "phpgt/json", - "version": "v2.2.0", + "version": "v2.2.1", "source": { "type": "git", "url": "https://github.com/phpgt/Json.git", - "reference": "522fb4fc665d658531ee287380adaaef1339b202" + "reference": "df697c3fc7b3527ae3a01d3f96b1bfbab80feee2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Json/zipball/522fb4fc665d658531ee287380adaaef1339b202", - "reference": "522fb4fc665d658531ee287380adaaef1339b202", + "url": "https://api.github.com/repos/phpgt/Json/zipball/df697c3fc7b3527ae3a01d3f96b1bfbab80feee2", + "reference": "df697c3fc7b3527ae3a01d3f96b1bfbab80feee2", "shasum": "" }, "require": { @@ -388,13 +396,14 @@ }, "require-dev": { "phpmd/phpmd": "^2.13", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2.1", "phpunit/phpunit": "^10.1", - "squizlabs/php_codesniffer": "^3.7" + "squizlabs/php_codesniffer": "^4.0" }, "type": "library", "autoload": { "psr-4": { + "GT\\Json\\": "./src", "Gt\\Json\\": "./src" } }, @@ -411,15 +420,15 @@ "description": " Structured, type-safe, immutable JSON objects.", "support": { "issues": "https://github.com/phpgt/Json/issues", - "source": "https://github.com/phpgt/Json/tree/v2.2.0" + "source": "https://github.com/phpgt/Json/tree/v2.2.1" }, "funding": [ { - "url": "https://github.com/sponsors/PhpGt", + "url": "https://github.com/sponsors/phpgt", "type": "github" } ], - "time": "2025-12-09T21:35:51+00:00" + "time": "2026-04-21T13:31:54+00:00" }, { "name": "phpgt/promise", @@ -1222,11 +1231,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.42", + "version": "2.1.51", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1279e1ce86ba768f0780c9d889852b4e02ff40d0", - "reference": "1279e1ce86ba768f0780c9d889852b4e02ff40d0", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc3b523c45e714c70de2ac5113b958223b55dc59", + "reference": "dc3b523c45e714c70de2ac5113b958223b55dc59", "shasum": "" }, "require": { @@ -1271,7 +1280,7 @@ "type": "github" } ], - "time": "2026-03-17T14:58:32+00:00" + "time": "2026-04-21T18:22:01+00:00" }, { "name": "phpunit/php-code-coverage", @@ -2952,16 +2961,16 @@ }, { "name": "symfony/config", - "version": "v7.4.7", + "version": "v7.4.8", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "6c17162555bfb58957a55bb0e43e00035b6ae3d5" + "reference": "2d19dde43fa2ff720b9a40763ace7226594f503b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/6c17162555bfb58957a55bb0e43e00035b6ae3d5", - "reference": "6c17162555bfb58957a55bb0e43e00035b6ae3d5", + "url": "https://api.github.com/repos/symfony/config/zipball/2d19dde43fa2ff720b9a40763ace7226594f503b", + "reference": "2d19dde43fa2ff720b9a40763ace7226594f503b", "shasum": "" }, "require": { @@ -3007,7 +3016,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v7.4.7" + "source": "https://github.com/symfony/config/tree/v7.4.8" }, "funding": [ { @@ -3027,20 +3036,20 @@ "type": "tidelift" } ], - "time": "2026-03-06T10:41:14+00:00" + "time": "2026-03-24T13:12:05+00:00" }, { "name": "symfony/dependency-injection", - "version": "v7.4.7", + "version": "v7.4.8", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "0f651e58f4917fb0e2cd261ccbfe3d71e6e0f5db" + "reference": "f7025fd7b687c240426562f86ada06a93b1e771d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/0f651e58f4917fb0e2cd261ccbfe3d71e6e0f5db", - "reference": "0f651e58f4917fb0e2cd261ccbfe3d71e6e0f5db", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f7025fd7b687c240426562f86ada06a93b1e771d", + "reference": "f7025fd7b687c240426562f86ada06a93b1e771d", "shasum": "" }, "require": { @@ -3091,7 +3100,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v7.4.7" + "source": "https://github.com/symfony/dependency-injection/tree/v7.4.8" }, "funding": [ { @@ -3111,7 +3120,7 @@ "type": "tidelift" } ], - "time": "2026-03-03T07:48:48+00:00" + "time": "2026-03-31T06:50:29+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3182,16 +3191,16 @@ }, { "name": "symfony/filesystem", - "version": "v7.4.6", + "version": "v7.4.8", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "3ebc794fa5315e59fd122561623c2e2e4280538e" + "reference": "58b9790d12f9670b7f53a1c1738febd3108970a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/3ebc794fa5315e59fd122561623c2e2e4280538e", - "reference": "3ebc794fa5315e59fd122561623c2e2e4280538e", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/58b9790d12f9670b7f53a1c1738febd3108970a5", + "reference": "58b9790d12f9670b7f53a1c1738febd3108970a5", "shasum": "" }, "require": { @@ -3228,7 +3237,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.4.6" + "source": "https://github.com/symfony/filesystem/tree/v7.4.8" }, "funding": [ { @@ -3248,20 +3257,20 @@ "type": "tidelift" } ], - "time": "2026-02-25T16:50:00+00:00" + "time": "2026-03-24T13:12:05+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.33.0", + "version": "v1.36.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", "shasum": "" }, "require": { @@ -3311,7 +3320,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.36.0" }, "funding": [ { @@ -3331,20 +3340,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.33.0", + "version": "v1.36.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", - "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6a21eb99c6973357967f6ce3708cd55a6bec6315", + "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315", "shasum": "" }, "require": { @@ -3396,7 +3405,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.36.0" }, "funding": [ { @@ -3416,7 +3425,7 @@ "type": "tidelift" } ], - "time": "2024-12-23T08:48:59+00:00" + "time": "2026-04-10T17:25:58+00:00" }, { "name": "symfony/service-contracts", @@ -3507,16 +3516,16 @@ }, { "name": "symfony/var-exporter", - "version": "v8.0.0", + "version": "v8.0.8", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "7345f46c251f2eb27c7b3ebdb5bb076b3ffcae04" + "reference": "15776bb07a91b089037da89f8832fa41d5fa6ec6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/7345f46c251f2eb27c7b3ebdb5bb076b3ffcae04", - "reference": "7345f46c251f2eb27c7b3ebdb5bb076b3ffcae04", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/15776bb07a91b089037da89f8832fa41d5fa6ec6", + "reference": "15776bb07a91b089037da89f8832fa41d5fa6ec6", "shasum": "" }, "require": { @@ -3563,7 +3572,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v8.0.0" + "source": "https://github.com/symfony/var-exporter/tree/v8.0.8" }, "funding": [ { @@ -3583,7 +3592,7 @@ "type": "tidelift" } ], - "time": "2025-11-05T18:53:00+00:00" + "time": "2026-03-30T15:14:47+00:00" }, { "name": "theseer/tokenizer", diff --git a/src/ArrayBuffer.php b/src/ArrayBuffer.php index 1444523..e5dcd58 100644 --- a/src/ArrayBuffer.php +++ b/src/ArrayBuffer.php @@ -1,5 +1,5 @@ $depth */ - public function awaitJson(int $depth = 512, int $options = 0):JsonObject { + public function awaitJson(int $depth = 512, int $options = 0):JSONObject { $jsonObject = null; if($responseText = $this->getBody()->getContents()) { $jsonObject = $this->jsonFromResponseText($responseText); } - $this->json($depth, $options)->then(function(JsonObject $resolved) use(&$jsonObject) { + $this->json($depth, $options)->then(function(JSONObject $resolved) use(&$jsonObject) { $jsonObject = $resolved; }); @@ -363,8 +363,8 @@ public function awaitJson(int $depth = 512, int $options = 0):JsonObject { } /** @param int<1, max> $depth */ - private function jsonFromResponseText(string $responseText, int $depth = 512, int $options = 0):JsonObject { - $builder = new JsonObjectBuilder($depth, $options); + private function jsonFromResponseText(string $responseText, int $depth = 512, int $options = 0):JSONObject { + $builder = new JSONObjectBuilder($depth, $options); return $builder->fromJsonString($responseText); } diff --git a/src/ResponseFactory.php b/src/ResponseFactory.php index d53ae08..64ddbd0 100644 --- a/src/ResponseFactory.php +++ b/src/ResponseFactory.php @@ -1,5 +1,5 @@ $parts */ diff --git a/src/UriParseErrorException.php b/src/UriParseErrorException.php index 89b1b9a..b6e239c 100644 --- a/src/UriParseErrorException.php +++ b/src/UriParseErrorException.php @@ -1,4 +1,4 @@ withBody($stream); - $sut->json()->then(function(JsonObject $json) use(&$actualJson) { + $sut->json()->then(function(JSONObject $json) use(&$actualJson) { $actualJson = $json; }); diff --git a/test/phpunit/ServerInfoTest.php b/test/phpunit/ServerInfoTest.php index 8e42e90..9799124 100644 --- a/test/phpunit/ServerInfoTest.php +++ b/test/phpunit/ServerInfoTest.php @@ -1,7 +1,7 @@ Date: Fri, 24 Apr 2026 13:25:19 +0100 Subject: [PATCH 2/3] ci: upgrade workflow --- .github/workflows/ci.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7e3a67..b71fd6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,24 +1,25 @@ name: CI -on: [push, pull_request] +on: + push: + pull_request: permissions: contents: read actions: read - id-token: none jobs: composer: runs-on: ubuntu-latest strategy: matrix: - php: [ 8.4, 8.5 ] + php: [ 8.2, 8.3, 8.4, 8.5 ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Cache Composer dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: /tmp/composer-cache key: ${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} @@ -27,6 +28,7 @@ jobs: uses: php-actions/composer@v6 with: php_version: ${{ matrix.php }} + php_extensions: pcntl - name: Archive build run: mkdir /tmp/github-actions/ && tar --exclude=".git" -cvf /tmp/github-actions/build.tar ./ @@ -43,7 +45,7 @@ jobs: needs: [ composer ] strategy: matrix: - php: [ 8.4, 8.5 ] + php: [ 8.2, 8.3, 8.4, 8.5 ] outputs: coverage: ${{ steps.store-coverage.outputs.coverage_text }} @@ -78,7 +80,7 @@ jobs: needs: [ phpunit ] strategy: matrix: - php: [ 8.4, 8.5 ] + php: [ 8.2, 8.3, 8.4, 8.5 ] steps: - uses: actions/checkout@v4 @@ -92,16 +94,17 @@ jobs: run: cat "_coverage/coverage.txt" - name: Upload to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} + slug: ${{ github.repository }} phpstan: runs-on: ubuntu-latest needs: [ composer ] strategy: matrix: - php: [ 8.4, 8.5 ] + php: [ 8.2, 8.3, 8.4, 8.5 ] steps: - uses: actions/download-artifact@v4 @@ -117,14 +120,15 @@ jobs: with: php_version: ${{ matrix.php }} path: src/ - level: 7 + level: 6 + memory_limit: 256M phpmd: runs-on: ubuntu-latest needs: [ composer ] strategy: matrix: - php: [ 8.4, 8.5 ] + php: [ 8.2, 8.3, 8.4, 8.5 ] steps: - uses: actions/download-artifact@v4 @@ -148,7 +152,7 @@ jobs: needs: [ composer ] strategy: matrix: - php: [ 8.4, 8.5 ] + php: [ 8.2, 8.3, 8.4, 8.5 ] steps: - uses: actions/download-artifact@v4 From 14b546e9622ce3c42d9a15a1737dc32113f48a57 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Fri, 24 Apr 2026 13:26:46 +0100 Subject: [PATCH 3/3] ci: php 8.4+ --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b71fd6f..d8be39a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ 8.2, 8.3, 8.4, 8.5 ] + php: [ 8.4, 8.5 ] steps: - uses: actions/checkout@v6 @@ -45,7 +45,7 @@ jobs: needs: [ composer ] strategy: matrix: - php: [ 8.2, 8.3, 8.4, 8.5 ] + php: [ 8.4, 8.5 ] outputs: coverage: ${{ steps.store-coverage.outputs.coverage_text }} @@ -80,7 +80,7 @@ jobs: needs: [ phpunit ] strategy: matrix: - php: [ 8.2, 8.3, 8.4, 8.5 ] + php: [ 8.4, 8.5 ] steps: - uses: actions/checkout@v4 @@ -104,7 +104,7 @@ jobs: needs: [ composer ] strategy: matrix: - php: [ 8.2, 8.3, 8.4, 8.5 ] + php: [ 8.4, 8.5 ] steps: - uses: actions/download-artifact@v4 @@ -128,7 +128,7 @@ jobs: needs: [ composer ] strategy: matrix: - php: [ 8.2, 8.3, 8.4, 8.5 ] + php: [ 8.4, 8.5 ] steps: - uses: actions/download-artifact@v4 @@ -152,7 +152,7 @@ jobs: needs: [ composer ] strategy: matrix: - php: [ 8.2, 8.3, 8.4, 8.5 ] + php: [ 8.4, 8.5 ] steps: - uses: actions/download-artifact@v4