Template: (foreach Collection<UserModel>
as $user) being typed as T
instead of UserModel
#4556
Labels
enhancement
This improves the quality of Phan's analysis of a codebase
Phan 5.2.0
php-ast version 1.0.14
PHP version used to run Phan: 7.2.34
Hello!
I'm using Lumen and the last few days I've been documenting the return type of base model and collection for better analysis but I can't get this Template to work.
The goal is the teach phan what a Collection has inside of it. In resume, here is the example i wrote:
Link to Phan Demo
The analisis output:
Why
$user
is beeing typed asT
?The text was updated successfully, but these errors were encountered: