mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-11 20:38:42 +00:00
fix after change to php 7.4
This commit is contained in:
parent
77b0aa961e
commit
061df3c320
|
|
@ -31,7 +31,7 @@ class Report implements \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $id = 0;
|
||||
private int $id = 0;
|
||||
|
||||
/**
|
||||
* Report status.
|
||||
|
|
@ -39,7 +39,7 @@ class Report implements \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $status = HelperStatus::INACTIVE;
|
||||
private int $status = HelperStatus::INACTIVE;
|
||||
|
||||
/**
|
||||
* Report title.
|
||||
|
|
@ -47,7 +47,7 @@ class Report implements \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $title = '';
|
||||
private string $title = '';
|
||||
|
||||
/**
|
||||
* Report description.
|
||||
|
|
@ -55,7 +55,7 @@ class Report implements \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $description = '';
|
||||
private string $description = '';
|
||||
|
||||
/**
|
||||
* Report description.
|
||||
|
|
@ -63,7 +63,7 @@ class Report implements \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $descriptionRaw = '';
|
||||
private string $descriptionRaw = '';
|
||||
|
||||
/**
|
||||
* Report created at.
|
||||
|
|
@ -71,7 +71,7 @@ class Report implements \JsonSerializable
|
|||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $createdAt = null;
|
||||
protected ?\DateTime $createdAt = null;
|
||||
|
||||
/**
|
||||
* Report created by.
|
||||
|
|
@ -84,7 +84,7 @@ class Report implements \JsonSerializable
|
|||
/**
|
||||
* Report template.
|
||||
*
|
||||
* @var int
|
||||
* @var null|int|Media
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $template = 0;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Template implements \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $id = 0;
|
||||
private int $id = 0;
|
||||
|
||||
/**
|
||||
* Template status.
|
||||
|
|
@ -39,15 +39,15 @@ class Template implements \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $status = HelperStatus::INACTIVE;
|
||||
private int $status = HelperStatus::INACTIVE;
|
||||
|
||||
/**
|
||||
* Template data source.
|
||||
* Template data type.
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $datatype = TemplateDataType::OTHER;
|
||||
private int $datatype = TemplateDataType::OTHER;
|
||||
|
||||
/**
|
||||
* Template doesn't need reports.
|
||||
|
|
@ -55,7 +55,7 @@ class Template implements \JsonSerializable
|
|||
* @var bool
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $isStandalone = false;
|
||||
private bool $isStandalone = false;
|
||||
|
||||
/**
|
||||
* Template name.
|
||||
|
|
@ -63,7 +63,7 @@ class Template implements \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $name = '';
|
||||
private string $name = '';
|
||||
|
||||
/**
|
||||
* Template description.
|
||||
|
|
@ -71,7 +71,7 @@ class Template implements \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $description = '';
|
||||
private string $description = '';
|
||||
|
||||
/**
|
||||
* Template description.
|
||||
|
|
@ -79,7 +79,7 @@ class Template implements \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $descriptionRaw = '';
|
||||
private string $descriptionRaw = '';
|
||||
|
||||
/**
|
||||
* Template created at.
|
||||
|
|
@ -87,7 +87,7 @@ class Template implements \JsonSerializable
|
|||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $createdAt = null;
|
||||
protected ?\DateTime $createdAt = null;
|
||||
|
||||
/**
|
||||
* Template created by.
|
||||
|
|
@ -100,7 +100,7 @@ class Template implements \JsonSerializable
|
|||
/**
|
||||
* Template source.
|
||||
*
|
||||
* @var int
|
||||
* @var int|Media
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $source = 0;
|
||||
|
|
@ -111,7 +111,7 @@ class Template implements \JsonSerializable
|
|||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $expected = [];
|
||||
private array $expected = [];
|
||||
|
||||
/**
|
||||
* Reports.
|
||||
|
|
@ -119,7 +119,7 @@ class Template implements \JsonSerializable
|
|||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $reports = [];
|
||||
private array $reports = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user