Inferred types take precedence over docblock types
1 post
• Page 1 of 1
Inferred types take precedence over docblock types
See the attached image where PHP tools is not honoring the return type defined for a function in it's dockblock.
It is inferring the type from some other information. Instead of issuing that warning, it should complaint that the function is not returning the proper type.
It is inferring the type from some other information. Instead of issuing that warning, it should complaint that the function is not returning the proper type.
You do not have the required permissions to view the files attached to this post.
- davidbcn
- Posts: 87
- Joined: September 10th, 2014, 3:07 am
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 54 guests