Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
Don't use call-time pass-by-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcgavin committed Dec 2, 2011
1 parent 5153257 commit 6ca2100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cuke4Php.php
Expand Up @@ -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";
}
Expand Down Expand Up @@ -279,4 +279,4 @@ public function $sMethodName($sParams) {
}
}

?>
?>

0 comments on commit 6ca2100

Please sign in to comment.