امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
These collection classes result in entity property type hints of;
PHP:
This has edge cases where the exact return type doesn't really match and iterating can lose the proper type hint. Especially if calling methods on
It would be nice if this was;
PHP:
Thankfully via phpdocs we can do this:
PHP:
Read more
PHP:
کد:
/**
* @property-read \MyAddon\Entity\Foo[]|\XF\Mvc\Entity\AbstractCollection
*/
AbstractCollectionIt would be nice if this was;
PHP:
کد:
/**
* @property-read \XF\Mvc\Entity\AbstractCollection<\MyAddon\Entity\Foo>
*/
Thankfully via phpdocs we can do this:
PHP:
/**...Read more
