mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 23:39:51 +01:00
Fixed phpstan issues
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user