Inferred types take precedence over docblock types

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Inferred types take precedence over docblock types

Postby davidbcn » October 28th, 2015, 9:35 pm

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.
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

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 53 guests

cron

User Control Panel

Login

Who is online

In total there are 53 users online :: 0 registered, 0 hidden and 53 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 53 guests