From e2b7bef74c6d5502f5ba0728a8bee898cbcea8a7 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Thu, 17 Jun 2021 20:53:30 +0200 Subject: [PATCH] Fix type-hint for DateTime::createFromFormat() --- src/Services/DatabaseBackup/AbstractDatabaseBackup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/DatabaseBackup/AbstractDatabaseBackup.php b/src/Services/DatabaseBackup/AbstractDatabaseBackup.php index 1660e720..c46b6e71 100644 --- a/src/Services/DatabaseBackup/AbstractDatabaseBackup.php +++ b/src/Services/DatabaseBackup/AbstractDatabaseBackup.php @@ -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);