mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-27 22:34:32 +02:00
Improved typing and phpdoc type annotations
This commit is contained in:
parent
3817ba774d
commit
b7c8ca2a48
39 changed files with 189 additions and 129 deletions
|
@ -144,7 +144,7 @@ class Part extends AttachmentContainingDBElement
|
|||
}
|
||||
|
||||
#[Assert\Callback]
|
||||
public function validate(ExecutionContextInterface $context, $payload)
|
||||
public function validate(ExecutionContextInterface $context, $payload): void
|
||||
{
|
||||
//Ensure that the part name fullfills the regex of the category
|
||||
if ($this->category instanceof Category) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue