Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / lib / Twig / TokenStream.php
index e1bd7ca1e331ea387ab350dcfbc0b7e07e6af3fd..81c043ca9f11f243708024277b7c8599a5915443 100644 (file)
@@ -139,7 +139,7 @@ class Twig_TokenStream
      */
     public function isEOF()
     {
-        return $this->tokens[$this->current]->getType() === Twig_Token::EOF_TYPE;
+        return Twig_Token::EOF_TYPE === $this->tokens[$this->current]->getType();
     }
 
     /**