mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
Add type hints and some other tweaks to satisfy PHPStan
This commit is contained in:
parent
caa623bd0b
commit
bef5aea7ad
11 changed files with 72 additions and 28 deletions
|
@ -1,10 +1,12 @@
|
|||
<?
|
||||
use Safe\DateTimeImmutable;
|
||||
|
||||
class GitCommit{
|
||||
public $Timestamp;
|
||||
public $Message;
|
||||
|
||||
public function __construct(string $unixTimestamp, string $message){
|
||||
$this->Timestamp = new \DateTimeImmutable('@' . $unixTimestamp);
|
||||
$this->Timestamp = new DateTimeImmutable('@' . $unixTimestamp);
|
||||
$this->Message = $message;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue