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:
@@ -81,18 +81,12 @@ class AttachmentRepository implements AttachmentRepositoryInterface
|
||||
|
||||
/**
|
||||
* @param int $attachmentId
|
||||
* @deprecated
|
||||
* @return Attachment
|
||||
* @return Attachment|null
|
||||
*/
|
||||
public function findWithoutUser(int $attachmentId): Attachment
|
||||
public function findWithoutUser(int $attachmentId): ?Attachment
|
||||
{
|
||||
|
||||
$attachment = Attachment::find($attachmentId);
|
||||
if (null === $attachment) {
|
||||
return new Attachment;
|
||||
}
|
||||
|
||||
return $attachment;
|
||||
return Attachment::find($attachmentId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -50,10 +50,9 @@ interface AttachmentRepositoryInterface
|
||||
|
||||
/**
|
||||
* @param int $attachmentId
|
||||
* @deprecated
|
||||
* @return Attachment
|
||||
* @return Attachment|null
|
||||
*/
|
||||
public function findWithoutUser(int $attachmentId): Attachment;
|
||||
public function findWithoutUser(int $attachmentId): ?Attachment;
|
||||
|
||||
/**
|
||||
* @return Collection
|
||||
|
Reference in New Issue
Block a user