Skip to content

Commit 9f93346

Browse files
committed
Fix phpstan errors
1 parent 4adc017 commit 9f93346

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

system/Common.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,12 @@ function command(string $command)
204204
/**
205205
* More simple way of getting config instances from Factories
206206
*
207-
* @template T of BaseConfig
207+
* @template ConfigTemplate of BaseConfig
208208
*
209-
* @param class-string<T> $name
209+
* @param class-string<ConfigTemplate>|string $name
210210
*
211-
* @return T
211+
* @return ConfigTemplate
212+
* @phpstan-return ($name is class-string<ConfigTemplate> ? ConfigTemplate : object|null)
212213
*/
213214
function config(string $name, bool $getShared = true)
214215
{

0 commit comments

Comments
 (0)