Security update for Core, with self-updated composer
[yaffs-website] / vendor / twig / twig / lib / Twig / Profiler / Profile.php
index 60b9103c8be0cf426a83fe4e7cabc9c710d012e2..3fdc1a8ae2dbeff29142264e187dae0646ceed41 100644 (file)
@@ -145,6 +145,12 @@ class Twig_Profiler_Profile implements IteratorAggregate, Serializable
         );
     }
 
+    public function reset()
+    {
+        $this->starts = $this->ends = $this->profiles = array();
+        $this->enter();
+    }
+
     public function getIterator()
     {
         return new ArrayIterator($this->profiles);