mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-10 19:32:07 +00:00
PHPStan level 3
This commit is contained in:
parent
85065b509f
commit
0f17a8cf8a
25 changed files with 86 additions and 74 deletions
|
@ -55,7 +55,7 @@ class Entry
|
|||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var string|null
|
||||
*
|
||||
* @ORM\Column(name="uid", type="string", length=23, nullable=true)
|
||||
*
|
||||
|
@ -132,7 +132,7 @@ class Entry
|
|||
private $isArchived = false;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
* @var \DateTimeInterface
|
||||
*
|
||||
* @ORM\Column(name="archived_at", type="datetime", nullable=true)
|
||||
*
|
||||
|
@ -161,7 +161,7 @@ class Entry
|
|||
private $content;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
* @var \DateTimeInterface
|
||||
*
|
||||
* @ORM\Column(name="created_at", type="datetime")
|
||||
*
|
||||
|
@ -170,7 +170,7 @@ class Entry
|
|||
private $createdAt;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
* @var \DateTimeInterface
|
||||
*
|
||||
* @ORM\Column(name="updated_at", type="datetime")
|
||||
*
|
||||
|
@ -179,7 +179,7 @@ class Entry
|
|||
private $updatedAt;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
* @var \DateTimeInterface
|
||||
*
|
||||
* @ORM\Column(name="published_at", type="datetime", nullable=true)
|
||||
*
|
||||
|
@ -197,7 +197,7 @@ class Entry
|
|||
private $publishedBy;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
* @var \DateTimeInterface
|
||||
*
|
||||
* @ORM\Column(name="starred_at", type="datetime", nullable=true)
|
||||
*
|
||||
|
@ -400,7 +400,7 @@ class Entry
|
|||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime|null
|
||||
* @return \DateTimeInterface|null
|
||||
*/
|
||||
public function getArchivedAt()
|
||||
{
|
||||
|
@ -408,7 +408,7 @@ class Entry
|
|||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime|null $archivedAt
|
||||
* @param \DateTimeInterface|null $archivedAt
|
||||
*
|
||||
* @return Entry
|
||||
*/
|
||||
|
@ -482,7 +482,7 @@ class Entry
|
|||
|
||||
public function toggleStar()
|
||||
{
|
||||
$this->isStarred = $this->isStarred() ^ 1;
|
||||
$this->isStarred = !$this->isStarred();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
@ -560,7 +560,7 @@ class Entry
|
|||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
* @return \DateTimeInterface
|
||||
*/
|
||||
public function getCreatedAt()
|
||||
{
|
||||
|
@ -568,7 +568,7 @@ class Entry
|
|||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
* @return \DateTimeInterface
|
||||
*/
|
||||
public function getUpdatedAt()
|
||||
{
|
||||
|
@ -576,7 +576,7 @@ class Entry
|
|||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime|null
|
||||
* @return \DateTimeInterface|null
|
||||
*/
|
||||
public function getStarredAt()
|
||||
{
|
||||
|
@ -584,7 +584,7 @@ class Entry
|
|||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime|null $starredAt
|
||||
* @param \DateTimeInterface|null $starredAt
|
||||
*
|
||||
* @return Entry
|
||||
*/
|
||||
|
@ -881,7 +881,7 @@ class Entry
|
|||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
* @return \DateTimeInterface
|
||||
*/
|
||||
public function getPublishedAt()
|
||||
{
|
||||
|
@ -891,7 +891,7 @@ class Entry
|
|||
/**
|
||||
* @return Entry
|
||||
*/
|
||||
public function setPublishedAt(\DateTime $publishedAt)
|
||||
public function setPublishedAt(\DateTimeInterface $publishedAt)
|
||||
{
|
||||
$this->publishedAt = $publishedAt;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue