psalm icon indicating copy to clipboard operation
psalm copied to clipboard

Use more precise return types for getimagesize* functions

Open MidnightDesign opened this issue 1 year ago • 2 comments

  • Key 0 (the image width) is always >= 0
  • Key 1 (the image height) is always >= 0
  • Key 2 is always one of the IMAGETYPE_* constants

MidnightDesign avatar Jul 11 '24 11:07 MidnightDesign

Is there an easy way to add tests for these signature changes?

MidnightDesign avatar Jul 11 '24 11:07 MidnightDesign

You also need to update either the delta files or the historic callmap. See https://psalm.dev/docs/contributing/editing_callmaps/

weirdan avatar Sep 07 '24 17:09 weirdan