mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Initialized typed nullable props as null in all entities
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user