Skip to content
Browse files

Don't use call-time pass-by-reference

  • Loading branch information...
1 parent 5153257 commit 6ca2100bb39ab6991354a2658ae6d5d70349786a Richard Jones committed Dec 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cuke4Php.php
View
4 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) {
}
}
-?>
+?>

0 comments on commit 6ca2100

Please sign in to comment.
Something went wrong with that request. Please try again.