mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed phpstan issues
This commit is contained in:
parent
1835669fde
commit
aeddf03d98
2 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ class StructuralEntityChoiceHelper
|
|||
}
|
||||
|
||||
/**
|
||||
* @param AbstractStructuralDBElement|null $element
|
||||
* @param AbstractStructuralDBElement $element
|
||||
* @return string|null
|
||||
*/
|
||||
public function generateGroupBy(AbstractStructuralDBElement $element): ?string
|
||||
|
|
|
@ -113,7 +113,7 @@ class StructuralEntityType extends AbstractType
|
|||
},
|
||||
'choice_label' => function (Options $options) {
|
||||
return function ($choice, $key, $value) use ($options) {
|
||||
return $this->choice_helper->generateChoiceLabel($choice, $options);
|
||||
return $this->choice_helper->generateChoiceLabel($choice);
|
||||
};
|
||||
},
|
||||
'choice_attr' => function (Options $options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue