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() {