Fixed GeolocationDbUpdater so that it does not try to interact with the reader if the file does not exist, preventing later errors

This commit is contained in:
Alejandro Celaya
2019-07-23 17:07:40 +02:00
parent c6fdd8a59f
commit 999beef349
5 changed files with 27 additions and 11 deletions

View File

@@ -10,5 +10,5 @@ interface GeolocationDbUpdaterInterface
/**
* @throws GeolocationDbUpdateFailedException
*/
public function checkDbUpdate(callable $mustBeUpdated = null, callable $handleProgress = null): void;
public function checkDbUpdate(?callable $mustBeUpdated = null, ?callable $handleProgress = null): void;
}