Storage: Define type of generic class ConfigObject

This commit is contained in:
Sukhwinder Dhillon 2024-03-28 12:01:16 +01:00
parent 77d5af43de
commit ca620814c3
2 changed files with 2 additions and 12 deletions

View file

@ -15,13 +15,13 @@ abstract class Storage
protected static $instance;
/**
* @var ConfigObject
* @var ConfigObject<string>
*/
protected $config;
/**
* Storage constructor.
* @param ConfigObject $config
* @param ConfigObject<string> $config
*/
public function __construct(ConfigObject $config)
{

View file

@ -3570,11 +3570,6 @@ parameters:
count: 1
path: library/Businessprocess/Storage/LegacyStorage.php
-
message: "#^Method Icinga\\\\Module\\\\Businessprocess\\\\Storage\\\\Storage\\:\\:__construct\\(\\) has parameter \\$config with generic class Icinga\\\\Data\\\\ConfigObject but does not specify its types\\: TValue$#"
count: 1
path: library/Businessprocess/Storage/Storage.php
-
message: "#^Method Icinga\\\\Module\\\\Businessprocess\\\\Storage\\\\Storage\\:\\:deleteProcess\\(\\) has parameter \\$name with no type specified\\.$#"
count: 1
@ -3615,11 +3610,6 @@ parameters:
count: 1
path: library/Businessprocess/Storage/Storage.php
-
message: "#^Property Icinga\\\\Module\\\\Businessprocess\\\\Storage\\\\Storage\\:\\:\\$config with generic class Icinga\\\\Data\\\\ConfigObject does not specify its types\\: TValue$#"
count: 1
path: library/Businessprocess/Storage/Storage.php
-
message: "#^Method Icinga\\\\Module\\\\Businessprocess\\\\Web\\\\Component\\\\BpDashboardTile\\:\\:__construct\\(\\) has parameter \\$attributes with no type specified\\.$#"
count: 1