Add generics for all controllers (#20675)

This commit is contained in:
Maksim Spirkov
2025-11-03 12:59:23 +03:00
committed by GitHub
parent 0998ac6cb1
commit 7dd3dede14
36 changed files with 216 additions and 63 deletions

View File

@@ -114,6 +114,9 @@ abstract class Application extends Module
public $sourceLanguage = 'en-US';
/**
* @var Controller|null the currently active controller instance
*
* @phpstan-var Controller<Module>|null
* @psalm-var Controller<Module>|null
*/
public $controller;
/**
@@ -128,8 +131,8 @@ abstract class Application extends Module
/**
* @var Action|null the requested Action. If null, it means the request cannot be resolved into an action.
*
* @phpstan-var Action<covariant Controller>|null
* @psalm-var Action<covariant Controller>|null
* @phpstan-var Action<covariant Controller<Module>>|null
* @psalm-var Action<covariant Controller<Module>>|null
*/
public $requestedAction;
/**