Skip to content

Commit ba2777a

Browse files
committed
Correctly convert types
1 parent 7607e53 commit ba2777a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/AboutLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function handle()
108108
case 'path':
109109
// now check if this file exists and when it was modified
110110
if(file_exists($value)) {
111-
$value = '<fg=gray><'.date('Y-m-d H:i:s', filemtime($value)).'></> '.$value;
111+
$value = '<fg=gray><'.date('Y-m-d H:i:s', (int) filemtime($value)).'></> '.$value;
112112
}
113113
else {
114114
$value = '<fg=gray><file missing></> <fg=red>'.$value.'</>';

src/Models/Drivers/Daily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function generateFilenames(): void {
1414
for($day = 0; $day <= $days; $day++) {
1515
// build filename
1616
$time = strtotime('today -'.$day.' days');
17-
$dayFilename = substr($filename, 0, -4).'-'.date('Y-m-d', $time).'.log';
17+
$dayFilename = substr($filename, 0, -4).'-'.date('Y-m-d', (int) $time).'.log';
1818
// and check if it exists
1919
if(file_exists($dayFilename)) {
2020
$this->filenames[] = $dayFilename;

0 commit comments

Comments
 (0)