mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Remove a lot of deprecated code.
This commit is contained in:
@@ -80,10 +80,9 @@ class ExportJobRepository implements ExportJobRepositoryInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ExportJob
|
||||
* @deprecated
|
||||
* @return ExportJob|null
|
||||
*/
|
||||
public function create(): ExportJob
|
||||
public function create(): ?ExportJob
|
||||
{
|
||||
$count = 0;
|
||||
while ($count < 30) {
|
||||
@@ -103,7 +102,7 @@ class ExportJobRepository implements ExportJobRepositoryInterface
|
||||
++$count;
|
||||
}
|
||||
|
||||
return new ExportJob;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -44,10 +44,9 @@ interface ExportJobRepositoryInterface
|
||||
public function cleanup(): bool;
|
||||
|
||||
/**
|
||||
* @return ExportJob
|
||||
* @deprecated
|
||||
* @return ExportJob|null
|
||||
*/
|
||||
public function create(): ExportJob;
|
||||
public function create(): ?ExportJob;
|
||||
|
||||
/**
|
||||
* @param ExportJob $job
|
||||
|
Reference in New Issue
Block a user