Skip to content

Commit 115a4a8

Browse files
committed
Fix
1 parent 34fb562 commit 115a4a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractor/extract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ private function compareStatementsInNamespace(array $oldStmts, array $newStmts,
410410
private function compareFunctions(Node\FunctionLike $old, Node\FunctionLike $new, string $updateTo): array
411411
{
412412
if ($old->getReturnType() === null && $new->getReturnType() !== null) {
413-
if ($new->getDocComment() !== null && strpos($new->getDocComment()->getText(), '@tentative-return-type') !== 0) {
413+
if ($new->getDocComment() !== null && strpos($new->getDocComment()->getText(), '@tentative-return-type') !== false) {
414414
$new->returnType = null; // @phpstan-ignore-line
415415
if ($old->getDocComment() !== null) {
416416
$oldPhpDocNode = $this->parseDocComment($old->getDocComment()->getText());

0 commit comments

Comments
 (0)