From 6d4698206a4ee6d0e251c2bdc8fb501c8135da68 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Thu, 5 Jun 2025 12:07:51 +0100 Subject: [PATCH 1/2] fix: match correct parameter with generic type fixes #606 --- src/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.php b/src/Cache.php index 5b63923..c9e716b 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -76,7 +76,7 @@ public function getArray(string $name, callable $callback, int $secondsValid = s /** * @template T - * @param class-string $name + * @param class-string $className * @return T */ public function getInstance(string $name, string $className, callable $callback, int $secondsValid = self::DEFAULT_SECONDS_VALID):object { From 345d432ff045ab9fa79ea66995ae33cffcd87c8f Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Tue, 10 Jun 2025 21:00:44 +0100 Subject: [PATCH 2/2] tweak: remove obsolete test --- phpcs.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/phpcs.xml b/phpcs.xml index a80be70..23146e3 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -24,7 +24,6 @@ -