-
-
Notifications
You must be signed in to change notification settings - Fork 947
Threaded[] = something generates bogus error #6571
Copy link
Copy link
Closed
phpstan/phpstan-src
#3699Labels
Description
Bug report
This probably has to do with the fact that this class implements array-like behaviour without support for ArrayAccess interface (https://github.com/phpstan/phpstan-src/blob/d5e6df75d42ad942f0cd1d592c0faf6a30c85c5d/src/Type/ObjectType.php#L54).
However, PHPStan used to support this case correctly, and now no longer does.
Code snippet that reproduces the problem
Expected output
No error should be reported: Threaded supports array-access.
Reactions are currently unavailable