This commit is contained in:
Fabien Potencier
2016-09-26 21:00:51 -07:00
parent 86e4c0d484
commit c96ffc314f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -544,7 +544,7 @@ function twig_replace_filter($str, $from, $to = null)
return strtr($str, $from, $to);
} elseif (!is_array($from)) {
throw new Twig_Error_Runtime(sprintf('The "replace" filter expects an array or "Traversable" as replace values, got "%s".',is_object($from) ? get_class($from) : gettype($from)));
throw new Twig_Error_Runtime(sprintf('The "replace" filter expects an array or "Traversable" as replace values, got "%s".', is_object($from) ? get_class($from) : gettype($from)));
}
return strtr($str, $from);
+1 -1
View File
@@ -115,7 +115,7 @@ class Twig_Tests_Cache_FilesystemTest extends PHPUnit_Framework_TestCase
// Create root directory.
@mkdir($this->directory, 0777, true);
// Create read-only subdirectory.
@mkdir($this->directory.'/cache' , 0555);
@mkdir($this->directory.'/cache', 0555);
$this->assertTrue(is_dir($this->directory.'/cache'));
$this->cache->write($key, $content);