Преглед на файлове

[Filesystem] Sprintf typo in exception

- Is "%" instead of "%s"
DanSync преди 13 години
родител
ревизия
84bb6bce7f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Component/HttpKernel/Util/Filesystem.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Util/Filesystem.php

@@ -133,7 +133,7 @@ class Filesystem
     {
         // we check that target does not exist
         if (is_readable($target)) {
-            throw new \RuntimeException(sprintf('Cannot rename because the target "%" already exist.', $target));
+            throw new \RuntimeException(sprintf('Cannot rename because the target "%s" already exist.', $target));
         }
 
         rename($origin, $target);