vimeo/psalm

Add support for interfaces in <universalObjectCrates>

Aperta

#7080 aperta il 6 dic 2021

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

Metriche repository

Star
 (5369 stelle)
Metriche merge PR
 (Metriche PR in attesa)

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