Browse Source

Fixed reference error after fixup

Joachim M. Giæver 7 years ago
parent
commit
f838999605
1 changed files with 3 additions and 3 deletions
  1. 3 3
      SamiTwigExtension.php

+ 3 - 3
SamiTwigExtension.php

@@ -772,19 +772,19 @@ class SamiTwigExtension extends \Twig_Extension {
         if (!empty($traits)) {
             foreach($traits as $key => $trait)
                 $traits[$key] = self::render_class($trait);
-            array_unshift($t, "## Traits");
+            array_unshift($traits, "## Traits");
         }   
 
         if (!empty($interfaces)) {
             foreach($interfaces as $key => $interface)
                 $interfaces[$key] = self::render_class($interface);
-            array_unshift($i, "## Interfaces");
+            array_unshift($interfaces, "## Interfaces");
         } 
 
         if (!empty($exceptions)) {
             foreach($exceptions as $key => $exception)
                 $exceptions[$key] = self::render_class($exception);
-            array_unshift($e, "## Exceptions");
+            array_unshift($exceptions, "## Exceptions");
         }
         return sprintf("%s%s%s%s", 
             self::join($classes),