Skip to content

ReturnTypeDeclarationRector: add broken test on array indexes (?)#2952

Merged
TomasVotruba merged 1 commit intorectorphp:masterfrom
gnutix:ReturnTypeDeclarationRector/add-broken-test-array-index
Feb 29, 2020
Merged

ReturnTypeDeclarationRector: add broken test on array indexes (?)#2952
TomasVotruba merged 1 commit intorectorphp:masterfrom
gnutix:ReturnTypeDeclarationRector/add-broken-test-array-index

Conversation

@gnutix
Copy link
Copy Markdown
Contributor

@gnutix gnutix commented Feb 28, 2020

I'm not sure exactly what's happening here ; might have to do with the fact that we access an array index using [0] ?

But I'm pretty sure it shouldn't replace ): \stdClass by ): array as it will break the code (PS: in my real code it's not \stdClass but some domain object).

@gnutix gnutix changed the title ReturnTypeDeclarationRector: add broken test. ReturnTypeDeclarationRector: add broken test on array indexes (?) Feb 28, 2020
@TomasVotruba
Copy link
Copy Markdown
Member

Nice test! 👍

@TomasVotruba TomasVotruba merged commit c025d4c into rectorphp:master Feb 29, 2020
@TomasVotruba TomasVotruba deleted the ReturnTypeDeclarationRector/add-broken-test-array-index branch February 29, 2020 00:02
TomasVotruba added a commit that referenced this pull request Sep 24, 2022
rectorphp/rector-src@2015f46 [AutoImport] Add support for auto import in alias same last name (#2952)
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.

2 participants