-
Hi there! I have some /**
* @extends AbstractCollection<array-key,\App\Model\Account>
*/
class AccountCollection extends AbstractCollection
{
public function getType(): string
{
return Account::class;
}
} and some /**
* @property \App\Model\AccountCollection $accounts
*
* @extends \Arrayy\Arrayy<array-key,mixed>
*/
class GetAccountsResponse extends Arrayy
{
} I call $res = GetAccountsResponse::createFromJsonMapper($json)
->accounts
->each(function (Account $a) {
print_r($a->accountName);
}); and I get
Do you have suggestions? Am I getting it wrong? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Answered by
voku
Dec 27, 2022
Replies: 1 comment
-
Hi, thanks for the good error report, I just put your example into the "/test/" directory and fixed the code in version 7.9.6. Please check if it's works for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
voku
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for the good error report, I just put your example into the "/test/" directory and fixed the code in version 7.9.6. Please check if it's works for you.