make phpstan happy

This commit is contained in:
Boy132 2025-09-02 13:43:38 +02:00
parent 2fe2697794
commit 405f71e174

View File

@ -67,11 +67,11 @@ class StartupVariable extends Field
return match ($this->getType()) { return match ($this->getType()) {
StartupVariableType::Number => [ StartupVariableType::Number => [
...parent::getDefaultStateCasts(), ...parent::getDefaultStateCasts(),
app(NumberStateCast::class, ['isNullable' => false]), new NumberStateCast(false),
], ],
StartupVariableType::Toggle => [ StartupVariableType::Toggle => [
...parent::getDefaultStateCasts(), ...parent::getDefaultStateCasts(),
app(BooleanStateCast::class, ['isNullable' => false]), new BooleanStateCast(false),
], ],
default => parent::getDefaultStateCasts() default => parent::getDefaultStateCasts()
}; };