fix after change to php 7.4

This commit is contained in:
Dennis Eichhorn 2019-08-17 14:14:51 +02:00
parent 246fa2ee91
commit af867a6eea

View File

@ -35,7 +35,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $id = 0; private int $id = 0;
/** /**
* Title. * Title.
@ -43,7 +43,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $title = ''; private string $title = '';
/** /**
* Content. * Content.
@ -51,7 +51,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $content = ''; private string $content = '';
/** /**
* Unparsed. * Unparsed.
@ -59,7 +59,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $plain = ''; private string $plain = '';
/** /**
* News type. * News type.
@ -67,7 +67,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $type = NewsType::ARTICLE; private int $type = NewsType::ARTICLE;
/** /**
* News status. * News status.
@ -75,7 +75,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $status = NewsStatus::DRAFT; private int $status = NewsStatus::DRAFT;
/** /**
* Language. * Language.
@ -83,7 +83,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $language = ISO639x1Enum::_EN; private string $language = ISO639x1Enum::_EN;
/** /**
* Created. * Created.
@ -91,7 +91,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdAt = null; private ?\DateTime $createdAt = null;
/** /**
* Creator. * Creator.
@ -107,7 +107,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private $publish = null; private ?\DateTime $publish = null;
/** /**
* Featured. * Featured.
@ -115,7 +115,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var bool * @var bool
* @since 1.0.0 * @since 1.0.0
*/ */
private $featured = false; private bool $featured = false;
/** /**
* Badge. * Badge.
@ -123,7 +123,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
private $badges = []; private array $badges = [];
/** /**
* Constructor. * Constructor.