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.

贡献者指南