mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Upgrade code from 146 to new standards
This commit is contained in:
@@ -366,7 +366,7 @@ class CustomFieldChoice extends AbstractCustomField
|
||||
* If the value had an 'allow_other' = true option, the returned value
|
||||
* **is not** the content of the _other field, but the `_other` string.
|
||||
*/
|
||||
private function guessValue(array|string|null $value)
|
||||
private function guessValue(null|array|string $value)
|
||||
{
|
||||
if (null === $value) {
|
||||
return null;
|
||||
|
@@ -138,7 +138,7 @@ class CustomFieldsGroup
|
||||
/**
|
||||
* Get name.
|
||||
*/
|
||||
public function getName(?string $language = null): string|array
|
||||
public function getName(?string $language = null): array|string
|
||||
{
|
||||
//TODO set this in a service, PLUS twig function
|
||||
if (null !== $language) {
|
||||
|
Reference in New Issue
Block a user