Skip to content

Commit 1017b23

Browse files
committed
Fix ValueTrait bug
1 parent 8d2e388 commit 1017b23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Model/Traits/ValueTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ protected function renderTyped($value)
5151

5252
switch ($type) {
5353
case 'boolean':
54-
$value = $this->value ? 'true' : 'false';
54+
$value = $value ? 'true' : 'false';
5555

5656
break;
5757
case 'int':
58-
$value = $this->value;
58+
// do nothing
5959

6060
break;
6161
case 'string':
62-
$value = sprintf('\'%s\'', addslashes($this->getValue()));
62+
$value = sprintf('\'%s\'', addslashes($value));
6363

6464
break;
6565
case 'array':

0 commit comments

Comments
 (0)