Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from ph-ash/fix-datetime
Browse files Browse the repository at this point in the history
Fix datetime and typo
  • Loading branch information
cHeeSaW committed Feb 27, 2019
2 parents ddcaf8b + 34db1ac commit 27af9b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Document/MonitoringData.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace App\Document;

use DateTimeImmutable;
use DateTimeInterface;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;

/**
Expand Down Expand Up @@ -97,7 +98,7 @@ public function getIdleTimeoutInSeconds(): int
return $this->idleTimeoutInSeconds;
}

public function getDate(): DateTimeImmutable
public function getDate(): DateTimeInterface
{
return $this->date;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Constraints/IsBranch.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

class IsBranch extends Constraint
{
public $message = 'Path \'{{path}}\' is a Branch and cannot contrain Monitoringdata';
public $message = 'Path \'{{path}}\' is a Branch and cannot contain Monitoringdata';
}

0 comments on commit 27af9b6

Please sign in to comment.