phpstan fixes

This commit is contained in:
Dennis Eichhorn 2020-11-27 22:56:16 +01:00
parent 148e53b5d0
commit a216076265
7 changed files with 31 additions and 31 deletions

View File

@ -50,13 +50,13 @@ class Cause
*/
public string $descriptionRaw = '';
private $probability = 0;
private int $probability = 0;
private $department = null;
private ?Department $department = null;
private $risk = null;
private ?Risk $risk = null;
private $category = null;
private ?Category $category = null;
/**
* Get id.

View File

@ -34,11 +34,11 @@ class Department
*/
protected int $id = 0;
private $department = null;
private ?Department $department = null;
private $responsible = null;
private ?int $responsible = null;
private $deputy = null;
private ?int $deputy = null;
/**
* Get id.

View File

@ -50,13 +50,13 @@ class Process
*/
public string $descriptionRaw = '';
private $department = null;
private ?int $department = null;
private $responsible = null;
private ?int $responsible = null;
private $deputy = null;
private ?int $deputy = null;
private $unit = 1;
private int $unit = 1;
/**
* Get id.

View File

@ -32,11 +32,11 @@ class Project
*/
protected int $id = 0;
private $project = null;
private ?int $project = null;
private $responsible = null;
private ?int $responsible = null;
private $deputy = null;
private ?int $deputy = null;
/**
* Get id.

View File

@ -56,31 +56,31 @@ class Risk
*/
public string $descriptionRaw = '';
private $unit = 1;
private int $unit = 1;
private $department = null;
private ?int $department = null;
private $category = null;
private ?int $category = null;
private $project = null;
private ?int $project = null;
private $process = null;
private ?int $process = null;
private $responsible = null;
private ?int $responsible = null;
private $deputy = null;
private ?int $deputy = null;
private $histScore = [];
private array $histScore = [];
private $causes = [];
private array $causes = [];
private $solutions = [];
private array $solutions = [];
private $riskObjects = [];
private array $riskObjects = [];
private $media = [];
private array $media = [];
private $createdAt = null;
private \DateTimeImmutable $createdAt;
/**
* Constructor.

View File

@ -50,7 +50,7 @@ class RiskObject
*/
public string $descriptionRaw = '';
private $risk = null;
private ?int $risk = null;
/**
* Get id.

View File

@ -50,11 +50,11 @@ class Solution
*/
public string $descriptionRaw = '';
private $probability = 0;
private int $probability = 0;
private $cause = null;
private ?int $cause = null;
private $risk = null;
private ?int $risk = null;
/**
* Get id.