Skip to content

Conversation

@thewilkybarkid
Copy link
Contributor

Thanks for the work implementing generics. 🎉

Found a bug try it out in libero/php-coding-standard#40: argument/return type hints aren't used, so it always becomes array rather than iterable, ArrayObject etc.

/** @var array<int>|string */
public $k;

/** @return iterable<array<string>> */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Followed

in keeping nested items as array.

@kukulich kukulich merged commit 5ceda07 into slevomat:master Feb 6, 2019
@kukulich
Copy link
Contributor

kukulich commented Feb 6, 2019

@thewilkybarkid Thank you. I've implemented the sniff very easy by purpose and wait for response :) So thank you for the response :)

@thewilkybarkid thewilkybarkid deleted the array-type-hints branch February 6, 2019 11:39
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