We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ece8e0 + a0c0c97 commit b14bec4Copy full SHA for b14bec4
src/AspectMock/Intercept/BeforeMockTransformer.php
@@ -94,7 +94,7 @@ public function transform(StreamMetaData $metadata)
94
}
95
$params = implode(", ", $params);
96
$beforeDefinition = sprintf($beforeDefinition, $params);
97
- for ($i = $method->getStartLine() - 1; $i < $method->getEndLine() - 1; $i++) {
+ for ($i = $method->getStartLine() - 1; $i < $method->getEndLine(); $i++) {
98
$pos = strpos($dataArray[$i], '{');
99
if ($pos === false) {
100
continue;
0 commit comments