Explorar o código

Fixed reference error after fixup

Joachim M. Giæver %!s(int64=7) %!d(string=hai) anos
pai
achega
f838999605
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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),