Skip to content

Conversation

@samsonasik
Copy link
Member

Given the following code:

final class WithStringKey
{
    public function getExtensions(): array
    {
        return [
            'a' => new FirstExtension(),
            'b' => new SecondExtension()
        ];
    }
}

currently got docblock:

+    /**
+     * @return \Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\AddReturnDocblockForCommonObjectDenominatorRector\Source\Contract\ExtensionInterface[]
+     */
     public function getExtensions(): array

which should use @return array<string, \Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\AddReturnDocblockForCommonObjectDenominatorRector\Source\Contract\ExtensionInterface>

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @TomasVotruba

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik enabled auto-merge (squash) September 12, 2025 13:31
@samsonasik samsonasik merged commit 2aec276 into main Sep 12, 2025
49 checks passed
@samsonasik samsonasik deleted the string-key branch September 12, 2025 13:32
@TomasVotruba
Copy link
Member

Awesome 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants