Version: v3.0.2#c133e18c922dcf3ad07673077d92d92cef25a148
Bug Description
Method Nette\Utils\Image::resize() has invalid input static types or documendation is not up to date. Both input arguments are int|string, but documentation claims, that you can pass null as well.
https://doc.nette.org/en/3.0/images#toc-image-resize
Steps To Reproduce
- use
Nette\Utils\Image::resize(42, null)
- run phpstan
Expected Behavior
Method has valid types.
Possible Solution
Replace int|string with int|string|null or update documentation.
Version: v3.0.2#c133e18c922dcf3ad07673077d92d92cef25a148
Bug Description
Method
Nette\Utils\Image::resize()has invalid input static types or documendation is not up to date. Both input arguments areint|string, but documentation claims, that you can pass null as well.https://doc.nette.org/en/3.0/images#toc-image-resize
Steps To Reproduce
Nette\Utils\Image::resize(42, null)Expected Behavior
Method has valid types.
Possible Solution
Replace
int|stringwithint|string|nullor update documentation.