vimeo/psalm

Add support for interfaces in <universalObjectCrates>

Open

#7,080 opened on Dec 6, 2021

View on GitHub
 (4 comments) (0 reactions) (0 assignees)PHP (668 forks)batch import
Help wantedenhancement

Repository metrics

Stars
 (5,369 stars)
PR merge metrics
 (Avg merge 3d 12h) (5 merged PRs in 30d)

Description

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.

Contributor guide