vimeo/psalm

Add support for interfaces in <universalObjectCrates>

Open

#7,080 建立於 2021年12月6日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)PHP (668 fork)batch import
Help wantedenhancement

倉庫指標

Star
 (5,369 star)
PR 合併指標
 (平均合併 3天 12小時) (30 天內合併 5 個 PR)

描述

First of all - thank you for the wonderful tool. It helped me a lot in gradually optimizing a big codebase.

Is it possible to add an interface to ? I have an object crate, but its implementations are hidden - all I have is the interface? Right now I am checking if the returned object (which always implements the same interface) is an instance of one of the concrete classes to avoid the error.

貢獻者指南