Expected to be of type integer, integer given
2 posts
• Page 1 of 1
Expected to be of type integer, integer given
Check out attachment. This warning does not make sense to me. The variable $img is of type Intervention\Image\Image.
You do not have the required permissions to view the files attached to this post.
- jorrit
- Posts: 21
- Joined: March 26th, 2015, 8:08 am
- Location: Amsterdam
Re: Expected to be of type integer, integer given
Thanks for the feedback.
It seams the Intervention framework annotates parameters with "integer" instead of "int".
"integer" might be a class name in PHP, "int" would be a correct name for a number.
Furthermore the PHP Tools tool tip message spells "int" as "integer" which makes this message little confusing.
---
In future we might handle this case and recognize "integer" PHPDoc type hint as a number.
It seams the Intervention framework annotates parameters with "integer" instead of "int".
"integer" might be a class name in PHP, "int" would be a correct name for a number.
Furthermore the PHP Tools tool tip message spells "int" as "integer" which makes this message little confusing.
---
In future we might handle this case and recognize "integer" PHPDoc type hint as a number.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 123 guests