vimeo/psalm

Add support for interfaces in <universalObjectCrates>

Open

#7 080 ouverte le 6 déc. 2021

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)PHP (668 forks)batch import
Help wantedenhancement

Métriques du dépôt

Stars
 (5 369 stars)
Métriques de merge PR
 (Merge moyen 3j 12h) (5 PRs mergées en 30 j)

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.

Guide contributeur