Fix issues in Doctrine entities newly found by PHPStan

[MAILPOET-3029]
This commit is contained in:
Rostislav Wolny
2020-11-05 09:42:05 +01:00
committed by Veljko V
parent 54e3c52630
commit 6438081476
5 changed files with 7 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ class SubscriberEntity {
/**
* @ORM\Column(type="bigint", nullable=true)
* @var int|null
* @var string|null
*/
private $wpUserId;
@@ -133,14 +133,14 @@ class SubscriberEntity {
* @return int|null
*/
public function getWpUserId() {
return $this->wpUserId;
return $this->wpUserId ? (int)$this->wpUserId : null;
}
/**
* @param int|null $wpUserId
*/
public function setWpUserId($wpUserId) {
$this->wpUserId = $wpUserId;
$this->wpUserId = $wpUserId ? (string)$wpUserId : null;
}
/**