From d1224da5c635c5f860c2838c74be680ac1b210a9 Mon Sep 17 00:00:00 2001 From: everzet Date: Fri, 1 Apr 2011 18:08:06 +0300 Subject: [PATCH] performance optimization --- src/Behat/Behat/Definition/DefinitionDispatcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Behat/Behat/Definition/DefinitionDispatcher.php b/src/Behat/Behat/Definition/DefinitionDispatcher.php index 6d6a08434..62e713a7a 100644 --- a/src/Behat/Behat/Definition/DefinitionDispatcher.php +++ b/src/Behat/Behat/Definition/DefinitionDispatcher.php @@ -187,8 +187,8 @@ public function findDefinition(StepNode $step) $arguments = array_merge(array_slice($arguments, 1), $args); // transform arguments - foreach ($this->transformations as $transformation) { - foreach ($arguments as $num => $argument) { + foreach ($arguments as $num => $argument) { + foreach ($this->transformations as $transformation) { if ($newArgument = $transformation->transform($argument)) { $arguments[$num] = $newArgument; }