diff --git a/src/Netzmacht/Contao/Leaflet/Subscriber/EncoderSubscriber.php b/src/Netzmacht/Contao/Leaflet/Subscriber/EncoderSubscriber.php index e44175b..791fddf 100644 --- a/src/Netzmacht/Contao/Leaflet/Subscriber/EncoderSubscriber.php +++ b/src/Netzmacht/Contao/Leaflet/Subscriber/EncoderSubscriber.php @@ -118,7 +118,7 @@ class EncoderSubscriber implements EventSubscriberInterface ); foreach ($value->getMethodCalls() as $call) { - $event->addLine($call->encode($encoder, $encoder->getOutput())); + $event->addLine($call->encode($encoder, Encoder::CLOSE_STATEMENT)); } } }