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.
1 parent 588d15b commit aa1964eCopy full SHA for aa1964e
src/AspectMock/Intercept/BeforeMockTransformer.php
@@ -69,7 +69,7 @@ public function transform(StreamMetaData $metadata): string
69
$beforeDefinition = sprintf($beforeDefinition, $params);
70
$tokenPosition = $method->getNode()->getAttribute('startTokenPos');
71
do {
72
- if ($metadata->tokenStream[$tokenPosition][1] === '{') {
+ if (($metadata->tokenStream[$tokenPosition][1] ?? '') === '{') {
73
$metadata->tokenStream[$tokenPosition][1] .= $beforeDefinition;
74
$result = self::RESULT_TRANSFORMED;
75
break;
0 commit comments