Skip to content

Commit ea4cab8

Browse files
authored
Merge pull request #61 from phpgt/60-generic-type
fix: match correct parameter with generic type fixes #606
2 parents b2848d3 + 345d432 commit ea4cab8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

phpcs.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<rule ref="Generic.Files.OneObjectStructurePerFile" />
2525
<rule ref="Generic.Files.OneTraitPerFile" />
2626
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
27-
<rule ref="Generic.Formatting.NoSpaceAfterCast" />
2827
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
2928
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
3029
<rule ref="Generic.Metrics.CyclomaticComplexity" />

src/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getArray(string $name, callable $callback, int $secondsValid = s
7676

7777
/**
7878
* @template T
79-
* @param class-string<T> $name
79+
* @param class-string<T> $className
8080
* @return T
8181
*/
8282
public function getInstance(string $name, string $className, callable $callback, int $secondsValid = self::DEFAULT_SECONDS_VALID):object {

0 commit comments

Comments
 (0)