mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-02 16:39:25 -05:00
phpstan: Fix generic type errors (#446)
This commit is contained in:
commit
1c38d23d3a
3 changed files with 2 additions and 13 deletions
|
|
@ -41,7 +41,6 @@ trait Sort
|
|||
return $this;
|
||||
}
|
||||
|
||||
/** @var array<int, string> $res */
|
||||
$res = Str::symmetricSplit($sort, ' ', 2, 'asc');
|
||||
[$sortBy, $direction] = $res;
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue