mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-09 04:58:40 +02:00
make phpstan happy
This commit is contained in:
parent
2fe2697794
commit
405f71e174
@ -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()
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user