aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Interpreter.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2012-12-03 14:36:18 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2012-12-03 14:36:18 +0100
commitc1bdbf7e5773d0a07c6523c9cbe095fa98380d77 (patch)
tree8a216d013ebf6ce6f49d3a1b2631d9d3567698d2 /Visitor/Interpreter.php
parenta2430d429c689656655970f697d8350dd1539527 (diff)
downloadPraspel-c1bdbf7e5773d0a07c6523c9cbe095fa98380d77.zip
Praspel-c1bdbf7e5773d0a07c6523c9cbe095fa98380d77.tar.gz
Praspel-c1bdbf7e5773d0a07c6523c9cbe095fa98380d77.tar.bz2
Hoa\Realdom API has changed, update the code.
Diffstat (limited to 'Visitor/Interpreter.php')
-rw-r--r--Visitor/Interpreter.php9
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;
}