diff --git a/composer.lock b/composer.lock index a32b8ef7..215117d6 100644 --- a/composer.lock +++ b/composer.lock @@ -1000,16 +1000,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.92.5", + "version": "v3.93.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "260cc8c4a1d2f6d2f22cd4f9c70aa72e55ebac58" + "reference": "50895a07cface1385082e4caa6a6786c4e033468" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/260cc8c4a1d2f6d2f22cd4f9c70aa72e55ebac58", - "reference": "260cc8c4a1d2f6d2f22cd4f9c70aa72e55ebac58", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/50895a07cface1385082e4caa6a6786c4e033468", + "reference": "50895a07cface1385082e4caa6a6786c4e033468", "shasum": "" }, "require": { @@ -1041,14 +1041,14 @@ }, "require-dev": { "facile-it/paraunit": "^1.3.1 || ^2.7", - "infection/infection": "^0.31", + "infection/infection": "^0.32", "justinrainbow/json-schema": "^6.6", "keradus/cli-executor": "^2.3", "mikey179/vfsstream": "^1.6.12", "php-coveralls/php-coveralls": "^2.9", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.6", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.6", - "phpunit/phpunit": "^9.6.31 || ^10.5.60 || ^11.5.46", + "phpunit/phpunit": "^9.6.31 || ^10.5.60 || ^11.5.48", "symfony/polyfill-php85": "^1.33", "symfony/var-dumper": "^5.4.48 || ^6.4.26 || ^7.4.0 || ^8.0", "symfony/yaml": "^5.4.45 || ^6.4.30 || ^7.4.1 || ^8.0" @@ -1092,7 +1092,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.92.5" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.93.0" }, "funding": [ { @@ -1100,20 +1100,20 @@ "type": "github" } ], - "time": "2026-01-08T21:57:37+00:00" + "time": "2026-01-23T17:33:21+00:00" }, { "name": "imbo/imbo-coding-standard", - "version": "v3.0.2", + "version": "v3.0.6", "source": { "type": "git", "url": "https://github.com/imbo/imbo-coding-standard.git", - "reference": "2964710bef2781ee1ce1d4519c7ecfda62f5494a" + "reference": "78edf46865aa25d2331e8823da43746c3bd2b8d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/imbo/imbo-coding-standard/zipball/2964710bef2781ee1ce1d4519c7ecfda62f5494a", - "reference": "2964710bef2781ee1ce1d4519c7ecfda62f5494a", + "url": "https://api.github.com/repos/imbo/imbo-coding-standard/zipball/78edf46865aa25d2331e8823da43746c3bd2b8d2", + "reference": "78edf46865aa25d2331e8823da43746c3bd2b8d2", "shasum": "" }, "require": { @@ -1150,9 +1150,9 @@ ], "support": { "issues": "https://github.com/imbo/imbo-coding-standard/issues", - "source": "https://github.com/imbo/imbo-coding-standard/tree/v3.0.2" + "source": "https://github.com/imbo/imbo-coding-standard/tree/v3.0.6" }, - "time": "2026-01-10T21:08:25+00:00" + "time": "2026-01-27T07:20:33+00:00" }, { "name": "kubawerlos/php-cs-fixer-custom-fixers", @@ -1492,11 +1492,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.34", + "version": "2.1.37", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/070ba754a949fcade788e16e8dc5a5935b7cf2ee", - "reference": "070ba754a949fcade788e16e8dc5a5935b7cf2ee", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/28cd424c5ea984128c95cfa7ea658808e8954e49", + "reference": "28cd424c5ea984128c95cfa7ea658808e8954e49", "shasum": "" }, "require": { @@ -1541,7 +1541,7 @@ "type": "github" } ], - "time": "2026-01-19T19:52:16+00:00" + "time": "2026-01-24T08:21:55+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", @@ -1592,16 +1592,16 @@ }, { "name": "phpstan/phpstan-phpunit", - "version": "2.0.11", + "version": "2.0.12", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "5e30669bef866eff70db8b58d72a5c185aa82414" + "reference": "e4c5a22bf43d3d2bd5a780ad261a622ff62c49a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/5e30669bef866eff70db8b58d72a5c185aa82414", - "reference": "5e30669bef866eff70db8b58d72a5c185aa82414", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/e4c5a22bf43d3d2bd5a780ad261a622ff62c49a4", + "reference": "e4c5a22bf43d3d2bd5a780ad261a622ff62c49a4", "shasum": "" }, "require": { @@ -1639,9 +1639,9 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.11" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.12" }, - "time": "2025-12-19T09:05:35+00:00" + "time": "2026-01-22T13:40:00+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1979,16 +1979,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.5.6", + "version": "12.5.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "ab8e4374264bc65523d1458d14bf80261577e01f" + "reference": "37ddb96c14bfee10304825edbb7e66d341ec6889" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ab8e4374264bc65523d1458d14bf80261577e01f", - "reference": "ab8e4374264bc65523d1458d14bf80261577e01f", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/37ddb96c14bfee10304825edbb7e66d341ec6889", + "reference": "37ddb96c14bfee10304825edbb7e66d341ec6889", "shasum": "" }, "require": { @@ -2008,7 +2008,7 @@ "phpunit/php-text-template": "^5.0.0", "phpunit/php-timer": "^8.0.0", "sebastian/cli-parser": "^4.2.0", - "sebastian/comparator": "^7.1.3", + "sebastian/comparator": "^7.1.4", "sebastian/diff": "^7.0.0", "sebastian/environment": "^8.0.3", "sebastian/exporter": "^7.0.2", @@ -2056,7 +2056,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.6" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.8" }, "funding": [ { @@ -2080,7 +2080,7 @@ "type": "tidelift" } ], - "time": "2026-01-16T16:28:10+00:00" + "time": "2026-01-27T06:12:29+00:00" }, { "name": "psr/container", @@ -2832,16 +2832,16 @@ }, { "name": "sebastian/comparator", - "version": "7.1.3", + "version": "7.1.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "dc904b4bb3ab070865fa4068cd84f3da8b945148" + "reference": "6a7de5df2e094f9a80b40a522391a7e6022df5f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/dc904b4bb3ab070865fa4068cd84f3da8b945148", - "reference": "dc904b4bb3ab070865fa4068cd84f3da8b945148", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/6a7de5df2e094f9a80b40a522391a7e6022df5f6", + "reference": "6a7de5df2e094f9a80b40a522391a7e6022df5f6", "shasum": "" }, "require": { @@ -2900,7 +2900,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.3" + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.4" }, "funding": [ { @@ -2920,7 +2920,7 @@ "type": "tidelift" } ], - "time": "2025-08-20T11:27:00+00:00" + "time": "2026-01-24T09:28:48+00:00" }, { "name": "sebastian/complexity", @@ -3712,16 +3712,16 @@ }, { "name": "symfony/console", - "version": "v7.4.3", + "version": "v7.4.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "732a9ca6cd9dfd940c639062d5edbde2f6727fb6" + "reference": "41e38717ac1dd7a46b6bda7d6a82af2d98a78894" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/732a9ca6cd9dfd940c639062d5edbde2f6727fb6", - "reference": "732a9ca6cd9dfd940c639062d5edbde2f6727fb6", + "url": "https://api.github.com/repos/symfony/console/zipball/41e38717ac1dd7a46b6bda7d6a82af2d98a78894", + "reference": "41e38717ac1dd7a46b6bda7d6a82af2d98a78894", "shasum": "" }, "require": { @@ -3786,7 +3786,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.3" + "source": "https://github.com/symfony/console/tree/v7.4.4" }, "funding": [ { @@ -3806,20 +3806,20 @@ "type": "tidelift" } ], - "time": "2025-12-23T14:50:43+00:00" + "time": "2026-01-13T11:36:38+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.4.0", + "version": "v7.4.4", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "9dddcddff1ef974ad87b3708e4b442dc38b2261d" + "reference": "dc2c0eba1af673e736bb851d747d266108aea746" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9dddcddff1ef974ad87b3708e4b442dc38b2261d", - "reference": "9dddcddff1ef974ad87b3708e4b442dc38b2261d", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/dc2c0eba1af673e736bb851d747d266108aea746", + "reference": "dc2c0eba1af673e736bb851d747d266108aea746", "shasum": "" }, "require": { @@ -3871,7 +3871,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.0" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.4" }, "funding": [ { @@ -3891,7 +3891,7 @@ "type": "tidelift" } ], - "time": "2025-10-28T09:38:46+00:00" + "time": "2026-01-05T11:45:34+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4041,16 +4041,16 @@ }, { "name": "symfony/finder", - "version": "v7.4.3", + "version": "v7.4.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "fffe05569336549b20a1be64250b40516d6e8d06" + "reference": "ad4daa7c38668dcb031e63bc99ea9bd42196a2cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/fffe05569336549b20a1be64250b40516d6e8d06", - "reference": "fffe05569336549b20a1be64250b40516d6e8d06", + "url": "https://api.github.com/repos/symfony/finder/zipball/ad4daa7c38668dcb031e63bc99ea9bd42196a2cb", + "reference": "ad4daa7c38668dcb031e63bc99ea9bd42196a2cb", "shasum": "" }, "require": { @@ -4085,7 +4085,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.4.3" + "source": "https://github.com/symfony/finder/tree/v7.4.5" }, "funding": [ { @@ -4105,7 +4105,7 @@ "type": "tidelift" } ], - "time": "2025-12-23T14:50:43+00:00" + "time": "2026-01-26T15:07:59+00:00" }, { "name": "symfony/options-resolver", @@ -4759,16 +4759,16 @@ }, { "name": "symfony/process", - "version": "v7.4.3", + "version": "v7.4.5", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "2f8e1a6cdf590ca63715da4d3a7a3327404a523f" + "reference": "608476f4604102976d687c483ac63a79ba18cc97" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/2f8e1a6cdf590ca63715da4d3a7a3327404a523f", - "reference": "2f8e1a6cdf590ca63715da4d3a7a3327404a523f", + "url": "https://api.github.com/repos/symfony/process/zipball/608476f4604102976d687c483ac63a79ba18cc97", + "reference": "608476f4604102976d687c483ac63a79ba18cc97", "shasum": "" }, "require": { @@ -4800,7 +4800,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.4.3" + "source": "https://github.com/symfony/process/tree/v7.4.5" }, "funding": [ { @@ -4820,7 +4820,7 @@ "type": "tidelift" } ], - "time": "2025-12-19T10:00:43+00:00" + "time": "2026-01-26T15:07:59+00:00" }, { "name": "symfony/service-contracts", @@ -4977,16 +4977,16 @@ }, { "name": "symfony/string", - "version": "v7.4.0", + "version": "v7.4.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d50e862cb0a0e0886f73ca1f31b865efbb795003" + "reference": "1c4b10461bf2ec27537b5f36105337262f5f5d6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d50e862cb0a0e0886f73ca1f31b865efbb795003", - "reference": "d50e862cb0a0e0886f73ca1f31b865efbb795003", + "url": "https://api.github.com/repos/symfony/string/zipball/1c4b10461bf2ec27537b5f36105337262f5f5d6f", + "reference": "1c4b10461bf2ec27537b5f36105337262f5f5d6f", "shasum": "" }, "require": { @@ -5044,7 +5044,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.4.0" + "source": "https://github.com/symfony/string/tree/v7.4.4" }, "funding": [ { @@ -5064,20 +5064,20 @@ "type": "tidelift" } ], - "time": "2025-11-27T13:27:24+00:00" + "time": "2026-01-12T10:54:30+00:00" }, { "name": "symfony/var-dumper", - "version": "v7.4.3", + "version": "v7.4.4", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "7e99bebcb3f90d8721890f2963463280848cba92" + "reference": "0e4769b46a0c3c62390d124635ce59f66874b282" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/7e99bebcb3f90d8721890f2963463280848cba92", - "reference": "7e99bebcb3f90d8721890f2963463280848cba92", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/0e4769b46a0c3c62390d124635ce59f66874b282", + "reference": "0e4769b46a0c3c62390d124635ce59f66874b282", "shasum": "" }, "require": { @@ -5131,7 +5131,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.4.3" + "source": "https://github.com/symfony/var-dumper/tree/v7.4.4" }, "funding": [ { @@ -5151,7 +5151,7 @@ "type": "tidelift" } ], - "time": "2025-12-18T07:04:31+00:00" + "time": "2026-01-01T22:13:48+00:00" }, { "name": "theseer/tokenizer", diff --git a/src/Client.php b/src/Client.php index 784bd673..c243ecaa 100644 --- a/src/Client.php +++ b/src/Client.php @@ -63,7 +63,7 @@ public function __construct($baseUrls, string $user, string $publicKey, string $ $baseUrls = [$baseUrls]; } - $this->baseUrls = array_map(fn (string $url): string => rtrim($url, '/'), $baseUrls); + $this->baseUrls = array_map(static fn (string $url): string => rtrim($url, '/'), $baseUrls); $this->user = $user; $this->publicKey = $publicKey; $this->privateKey = $privateKey; diff --git a/src/Response/AccessControlRules.php b/src/Response/AccessControlRules.php index ef8d33f9..7adf13dd 100644 --- a/src/Response/AccessControlRules.php +++ b/src/Response/AccessControlRules.php @@ -31,7 +31,7 @@ public static function fromHttpResponse(ResponseInterface $response): self /** @var array,group?:string,users:string|array}> */ $body = Utils::convertResponseToArray($response); $accessControlRules = array_map( - fn (array $rule): AccessControlRule => (new AccessControlRule( + static fn (array $rule): AccessControlRule => (new AccessControlRule( $rule['id'], $rule['users'], $rule['resources'] ?? null, diff --git a/src/Response/Images.php b/src/Response/Images.php index 4ba6d8a1..7092d86d 100644 --- a/src/Response/Images.php +++ b/src/Response/Images.php @@ -43,7 +43,7 @@ public static function fromHttpResponse(ResponseInterface $response, ImagesQuery $body = Utils::convertResponseToArray($response); $images = array_map( - fn (array $image): Image => (new Image( + static fn (array $image): Image => (new Image( $image['imageIdentifier'], $image['checksum'], $image['originalChecksum'], diff --git a/src/Response/ResourceGroups.php b/src/Response/ResourceGroups.php index 75004cf7..81d8b54d 100644 --- a/src/Response/ResourceGroups.php +++ b/src/Response/ResourceGroups.php @@ -41,7 +41,7 @@ public static function fromHttpResponse(ResponseInterface $response, Query $quer $body = Utils::convertResponseToArray($response); $resourceGroups = array_map( - fn (array $group): ResourceGroup => (new ResourceGroup($group['name'], $group['resources']))->withResponse($response), + static fn (array $group): ResourceGroup => (new ResourceGroup($group['name'], $group['resources']))->withResponse($response), $body['groups'], ); diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 7742858c..7a0ebfd3 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -830,7 +830,7 @@ private function getPreviousRequest(): Request private function getPreviousRequests(int $num): array { return array_map( - fn (array $transaction): Request => $transaction['request'], + static fn (array $transaction): Request => $transaction['request'], $this->getPreviousTransactions($num), ); }