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

Merge remote branch 'gimler/master'

* gimler/master:
  use param names in exception not the index
Fabien Potencier преди 14 години
родител
ревизия
5b6f15b661
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Component/Routing/Generator/UrlGenerator.php

+ 1 - 1
src/Symfony/Component/Routing/Generator/UrlGenerator.php

@@ -101,7 +101,7 @@ class UrlGenerator implements UrlGeneratorInterface
 
         // all params must be given
         if ($diff = array_diff_key($variables, $tparams)) {
-            throw new MissingMandatoryParametersException(sprintf('The "%s" route has some missing mandatory parameters (%s).', $name, implode(', ', $diff)));
+            throw new MissingMandatoryParametersException(sprintf('The "%s" route has some missing mandatory parameters (%s).', $name, implode(', ', array_keys($diff))));
         }
 
         $url = '';