Skip to content

Commit

Permalink
Add support for nullable username
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Nov 28, 2021
1 parent 267ed1a commit 9fff45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Revision.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class Revision
private $timestamp;

/**
* @var string
* @var string|null
*/
private $username;

public function __construct($rev, \DateTime $timestamp, string $username)
public function __construct($rev, \DateTime $timestamp, ?string $username)
{
$this->rev = $rev;
$this->timestamp = $timestamp;
Expand Down

0 comments on commit 9fff45a

Please sign in to comment.