Remove a lot of deprecated code.

This commit is contained in:
James Cole
2018-07-25 06:45:25 +02:00
parent dbf019135a
commit 7c950c3022
39 changed files with 189 additions and 621 deletions

View File

@@ -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);
}
/**

View File

@@ -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