public function BooleanLiteral__finalise(&$result) { $result['val'] = strtolower($result['text']) === 'true'; }