diff --git a/lib/Cuke4Php.php b/lib/Cuke4Php.php index 1c03a4f..c647a04 100644 --- a/lib/Cuke4Php.php +++ b/lib/Cuke4Php.php @@ -251,7 +251,7 @@ function snippetText($aSnippet) { $sMethodName = "step" . str_replace(" ", "", ucwords(preg_replace("/\W+/", " ", preg_replace("/\"[^\"]*\"/", "Parameter", $aSnippet->step_name)))); $count = 0; $aParams = array(); - $sStepName = preg_replace("/\"[^\"]*\"/", "\"([^\"]*)\"", preg_quote($aSnippet->step_name), -1, &$count); + $sStepName = preg_replace("/\"[^\"]*\"/", "\"([^\"]*)\"", preg_quote($aSnippet->step_name), -1, $count); for ($param = 1; $param <= $count; $param++) { $aParams[] = "\$arg$param"; } @@ -279,4 +279,4 @@ public function $sMethodName($sParams) { } } -?> \ No newline at end of file +?>