vimeo/psalm

Add support for interfaces in <universalObjectCrates>

Open

#7080 aperta il 6 dic 2021

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)PHP (668 fork)batch import
Help wantedenhancement

Metriche repository

Star
 (5369 star)
Metriche merge PR
 (Merge medio 3g 12h) (5 PR mergiate in 30 g)

Descrizione

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.

Guida contributor