We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4adc017 commit 9f93346Copy full SHA for 9f93346
1 file changed
system/Common.php
@@ -204,11 +204,12 @@ function command(string $command)
204
/**
205
* More simple way of getting config instances from Factories
206
*
207
- * @template T of BaseConfig
+ * @template ConfigTemplate of BaseConfig
208
209
- * @param class-string<T> $name
+ * @param class-string<ConfigTemplate>|string $name
210
211
- * @return T
+ * @return ConfigTemplate
212
+ * @phpstan-return ($name is class-string<ConfigTemplate> ? ConfigTemplate : object|null)
213
*/
214
function config(string $name, bool $getShared = true)
215
{
0 commit comments