Skip to content

Commit

Permalink
Fix type-hint for DateTime::createFromFormat()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Jun 21, 2021
1 parent 6a586b3 commit e2b7bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/DatabaseBackup/AbstractDatabaseBackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function init(array $metadatas, array $classNames, bool $append = false):
*/
protected function isBackupUpToDate(string $backup): bool
{
$backupLastModifiedDateTime = DateTime::createFromFormat('U', filemtime($backup));
$backupLastModifiedDateTime = DateTime::createFromFormat('U', (string) filemtime($backup));

$loader = $this->fixturesLoaderFactory->getFixtureLoader($this->classNames);

Expand Down

0 comments on commit e2b7bef

Please sign in to comment.