PHPStan/Psalm annotations for base class constructors (#20413)

This commit is contained in:
Максим Спирков
2025-06-13 23:27:33 +04:00
committed by GitHub
parent ed4f888136
commit b47f81ea27
6 changed files with 19 additions and 0 deletions

View File

@ -189,6 +189,9 @@ abstract class Application extends Module
* @param array $config name-value pairs that will be used to initialize the object properties.
* Note that the configuration must contain both [[id]] and [[basePath]].
* @throws InvalidConfigException if either [[id]] or [[basePath]] configuration is missing.
*
* @phpstan-param array<string, mixed> $config
* @psalm-param array<string, mixed> $config
*/
public function __construct($config = [])
{