From fb844dc9d0b15ba837585d3a94645e32df332ad6 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:15:52 +0200 Subject: [PATCH] =?UTF-8?q?Bump=20dependencies=20and=20Pkl=20CLI=20version?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 13 ++++++------- src/Cache/Adapter/ApcuCacheAdapter.php | 2 +- src/Cache/Adapter/MemcachedCacheAdapter.php | 2 +- src/Cache/PersistentCache.php | 2 +- src/Internal/PklDownloader.php | 2 +- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 1f208fe..ec81181 100644 --- a/composer.json +++ b/composer.json @@ -15,9 +15,9 @@ "require": { "php": ">=8.2", "psr/simple-cache": "^3.0", - "symfony/console": "^6.3|^7.0", - "symfony/finder": "^6.3|^7.0", - "symfony/process": "^6.3|^7.0" + "symfony/console": "^6.4|^7.0", + "symfony/finder": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0" }, "config": { "optimize-autoloader": true, @@ -43,9 +43,8 @@ "stan": "vendor/bin/phpstan analyse src tests -l 8" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.49", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.5.10", - "symfony/var-dumper": "^7.0" + "friendsofphp/php-cs-fixer": "^3.58.1", + "phpstan/phpstan": "^1.11.4", + "phpunit/phpunit": "^10.5.20" } } diff --git a/src/Cache/Adapter/ApcuCacheAdapter.php b/src/Cache/Adapter/ApcuCacheAdapter.php index 8b299e7..6ac7385 100644 --- a/src/Cache/Adapter/ApcuCacheAdapter.php +++ b/src/Cache/Adapter/ApcuCacheAdapter.php @@ -24,7 +24,7 @@ public function __construct() /** * @param non-empty-string $key */ - public function get(string $key, mixed $default = null): Entry|null + public function get(string $key, mixed $default = null): ?Entry { if ($default !== null && !$default instanceof Entry) { throw new \InvalidArgumentException('Default value must be null or an instance of Entry'); diff --git a/src/Cache/Adapter/MemcachedCacheAdapter.php b/src/Cache/Adapter/MemcachedCacheAdapter.php index 4cbbcf1..144ca34 100644 --- a/src/Cache/Adapter/MemcachedCacheAdapter.php +++ b/src/Cache/Adapter/MemcachedCacheAdapter.php @@ -30,7 +30,7 @@ public function __construct(MemcachedServer|array $servers, string $persistentId /** * @param non-empty-string $key */ - public function get(string $key, mixed $default = null): Entry|null + public function get(string $key, mixed $default = null): ?Entry { if ($default !== null && !$default instanceof Entry) { throw new \InvalidArgumentException('Default value must be null or an instance of Entry'); diff --git a/src/Cache/PersistentCache.php b/src/Cache/PersistentCache.php index aa0ac38..b1de235 100644 --- a/src/Cache/PersistentCache.php +++ b/src/Cache/PersistentCache.php @@ -37,7 +37,7 @@ public function __construct(private ?string $cacheFile = null) * * @throws \InvalidArgumentException */ - public function get(string $key, mixed $default = null): Entry|null + public function get(string $key, mixed $default = null): ?Entry { $entry = $this->entries[$key] ?? null; $isHit = $entry !== null; diff --git a/src/Internal/PklDownloader.php b/src/Internal/PklDownloader.php index 2ab594a..3afb631 100644 --- a/src/Internal/PklDownloader.php +++ b/src/Internal/PklDownloader.php @@ -18,7 +18,7 @@ */ final class PklDownloader { - private const PKL_CLI_VERSION = '0.25.2'; + private const PKL_CLI_VERSION = '0.25.3'; public function __construct() {