Parcourir la source

merged branch dantleech/filesystem-sprintf-typo-1 (PR #2831)

Commits
-------

84bb6bc [Filesystem] Sprintf typo in exception

Discussion
----------

[Filesystem] Sprintf typo in exception

Bug fix: [yes]
Feature addition: [no]
Backwards compatibility break: [no]
Fabien Potencier il y a 13 ans
Parent
commit
4bdef75618
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);