mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Initialized typed nullable props as null in all entities
This commit is contained in:
parent
75b8ed813f
commit
d2c06dd0ab
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ class ShortUrl extends AbstractEntity
|
|||
private ?Chronos $validSince = null;
|
||||
private ?Chronos $validUntil = null;
|
||||
private ?int $maxVisits = null;
|
||||
private ?Domain $domain;
|
||||
private ?Domain $domain = null;
|
||||
private bool $customSlugWasProvided;
|
||||
private int $shortCodeLength;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ use Shlinkio\Shlink\Common\Entity\AbstractEntity;
|
|||
class ApiKey extends AbstractEntity
|
||||
{
|
||||
private string $key;
|
||||
private ?Chronos $expirationDate;
|
||||
private ?Chronos $expirationDate = null;
|
||||
private bool $enabled;
|
||||
|
||||
public function __construct(?Chronos $expirationDate = null)
|
||||
|
|
Loading…
Add table
Reference in a new issue