Skip to content

Commit

Permalink
Storage: Define type of generic class ConfigObject
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Apr 19, 2024
1 parent 77d5af4 commit ca62081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions library/Businessprocess/Storage/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
10 changes: 0 additions & 10 deletions phpstan-baseline-standard.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca62081

Please sign in to comment.