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()) {
StartupVariableType::Number => [
...parent::getDefaultStateCasts(),
app(NumberStateCast::class, ['isNullable' => false]),
new NumberStateCast(false),
],
StartupVariableType::Toggle => [
...parent::getDefaultStateCasts(),
app(BooleanStateCast::class, ['isNullable' => false]),
new BooleanStateCast(false),
],
default => parent::getDefaultStateCasts()
};