mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
f7c2f1032f
commit
21a81486df
24 changed files with 64 additions and 84 deletions
|
@ -52,7 +52,7 @@ class PartAttachment extends Attachment
|
|||
public function setElement(AttachmentContainingDBElement $element): Attachment
|
||||
{
|
||||
if (!$element instanceof Part) {
|
||||
throw new \InvalidArgumentException("The element associated with a PartAttachment must be a Part!");
|
||||
throw new \InvalidArgumentException('The element associated with a PartAttachment must be a Part!');
|
||||
}
|
||||
|
||||
$this->element = $element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue