Skip to content

Commit 9d63abc

Browse files
committed
#hotfix: Fix setParam to else if
1 parent 908f541 commit 9d63abc

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/Blocks/ConfigTrait.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@ private function setParam(string $param, string $type, string $value, int $tabs
6464
} else {
6565
$value = PhpInterface::PHP_TYPES_BOOL_FALSE;
6666
}
67-
} else {
68-
if ($type !== ApiInterface::RAML_TYPE_NUMBER) {
69-
if ($type === ApiInterface::RAML_TYPE_STRING) {
70-
$value = PhpInterface::QUOTES . $value . PhpInterface::QUOTES;
71-
} else {
72-
settype($value, ApiInterface::RAML_TO_PHP_TYPES[$type]);
73-
}
67+
} else if ($type !== ApiInterface::RAML_TYPE_NUMBER) {
68+
if ($type === ApiInterface::RAML_TYPE_STRING) {
69+
$value = PhpInterface::QUOTES . $value . PhpInterface::QUOTES;
70+
} else {
71+
settype($value, ApiInterface::RAML_TO_PHP_TYPES[$type]);
7472
}
7573
}
7674
$this->setTabs($tabs);

0 commit comments

Comments
 (0)