It's a bit frustrating to use the fluent syntax of classes like TD and Sight in projects that are analyzed by PHPStan.
The reason is that these classes inherit fluent methods from Orchid\Screen\Cell, where the return type is set to self.
This raises errors when using the inherited methods because the return type of the method chain is changed from the desired TD or Sight to Cell.
It would be nice to change the return type of the fluent methods to static.
It's a bit frustrating to use the fluent syntax of classes like
TD
andSight
in projects that are analyzed by PHPStan. The reason is that these classes inherit fluent methods fromOrchid\Screen\Cell
, where the return type is set toself
. This raises errors when using the inherited methods because the return type of the method chain is changed from the desiredTD
orSight
toCell
.It would be nice to change the return type of the fluent methods to
static
.