Skip to content

Commit

Permalink
Allways cast control name to string in getValues
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Jun 8, 2020
1 parent 206edb7 commit dc0d4f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Forms/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function getValues($returnType = null)
$rc = new \ReflectionClass($obj);

foreach ($this->getComponents() as $name => $control) {
$name = (string) $name;
if ($control instanceof IControl && !$control->isOmitted()) {
$obj->$name = $control->getValue();
} elseif ($control instanceof self) {
Expand Down

0 comments on commit dc0d4f5

Please sign in to comment.