```php self::assertArrayHasKey(1, $ubos); self::assertFalse($ubos[1]->isActive); ``` produces ``` Offset 1 does not exist on array(MangoPay\Ubo). ``` related class: https://github.com/Mangopay/mangopay2-php-sdk/blob/d967b3fb6f45a0f01891134062265144950c9259/MangoPay/UboDeclaration.php
Activity
ntzm commentedon Dec 19, 2019
As a workaround you can use
VincentLanglet commentedon Nov 1, 2025
I assume you also fixed this with phpstan/phpstan-src#4473 @staabm ?
staabm commentedon Nov 2, 2025
@VincentLanglet yes I think so. as this issue does not has a full reproducer we can't say for sure.
@ostrolucky could you please check whether phpstan-phpunit 2.0.8 in combination with phpstan 2.1.32 still reproduce this problem for you?
ostrolucky commentedon Nov 3, 2025
I can't do it unfortunately since it's a project I no longer has access to. But let's assume it has been fixed, I'll close the issue.
github-actions commentedon Dec 5, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.