diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-12-03 14:36:18 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-12-03 14:36:18 +0100 |
commit | c1bdbf7e5773d0a07c6523c9cbe095fa98380d77 (patch) | |
tree | 8a216d013ebf6ce6f49d3a1b2631d9d3567698d2 /Visitor | |
parent | a2430d429c689656655970f697d8350dd1539527 (diff) | |
download | Praspel-c1bdbf7e5773d0a07c6523c9cbe095fa98380d77.zip Praspel-c1bdbf7e5773d0a07c6523c9cbe095fa98380d77.tar.gz Praspel-c1bdbf7e5773d0a07c6523c9cbe095fa98380d77.tar.bz2 |
Hoa\Realdom API has changed, update the code.
Diffstat (limited to 'Visitor')
-rw-r--r-- | Visitor/Interpreter.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php index 2d842ba..26fe9c7 100644 --- a/Visitor/Interpreter.php +++ b/Visitor/Interpreter.php @@ -225,7 +225,7 @@ class Interpreter implements \Hoa\Visitor\Visit { $value = $child->accept($this, $handle, $eldnah); if($value instanceof \Hoa\Realdom\Disjunction) - $disjunction->addRealdom($value->getRealdoms()); + $disjunction[] = $value; else $disjunction->const($value); } @@ -243,8 +243,11 @@ class Interpreter implements \Hoa\Visitor\Visit { $argument = $child->accept($this, $handle, $eldnah); - if($argument instanceof \Hoa\Realdom\Disjunction) - $argument = $argument->getRealdoms(); + if($argument instanceof \Hoa\Realdom\Disjunction) { + + $realdoms = $argument->getRealdoms(); + $argument = $realdoms[0]; + } $arguments[] = $argument; } |