|
4544 | 4544 | 'imagebmp' => ['bool', 'image'=>'resource', 'to='=>'string|resource|null', 'compressed='=>'bool'],
|
4545 | 4545 | 'imagechar' => ['bool', 'im'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'c'=>'string', 'col'=>'int'],
|
4546 | 4546 | 'imagecharup' => ['bool', 'im'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'c'=>'string', 'col'=>'int'],
|
4547 |
| -'imagecolorallocate' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
4548 |
| -'imagecolorallocatealpha' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
4549 |
| -'imagecolorat' => ['int|false', 'im'=>'resource', 'x'=>'int', 'y'=>'int'], |
4550 |
| -'imagecolorclosest' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
4551 |
| -'imagecolorclosestalpha' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
4552 |
| -'imagecolorclosesthwb' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
| 4547 | +'imagecolorallocate' => ['int<0, max>|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
| 4548 | +'imagecolorallocatealpha' => ['int<0, max>|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
| 4549 | +'imagecolorat' => ['int<0, max>|false', 'im'=>'resource', 'x'=>'int', 'y'=>'int'], |
| 4550 | +'imagecolorclosest' => ['int<0, max>', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
| 4551 | +'imagecolorclosestalpha' => ['int<0, max>', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
| 4552 | +'imagecolorclosesthwb' => ['int<0, max>', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
4553 | 4553 | 'imagecolordeallocate' => ['bool', 'im'=>'resource', 'index'=>'int'],
|
4554 |
| -'imagecolorexact' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
4555 |
| -'imagecolorexactalpha' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
| 4554 | +'imagecolorexact' => ['int<0, max>|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
| 4555 | +'imagecolorexactalpha' => ['int<0, max>|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
4556 | 4556 | 'imagecolormatch' => ['bool', 'im1'=>'resource', 'im2'=>'resource'],
|
4557 |
| -'imagecolorresolve' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
4558 |
| -'imagecolorresolvealpha' => ['int|false', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
| 4557 | +'imagecolorresolve' => ['int<0, max>', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int'], |
| 4558 | +'imagecolorresolvealpha' => ['int<0, max>', 'im'=>'resource', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha'=>'int'], |
4559 | 4559 | 'imagecolorset' => ['void', 'im'=>'resource', 'col'=>'int', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha='=>'int'],
|
4560 |
| -'imagecolorsforindex' => ['array|false', 'im'=>'resource', 'col'=>'int'], |
4561 |
| -'imagecolorstotal' => ['int', 'im'=>'resource'], |
| 4560 | +'imagecolorsforindex' => ['array{red: int<0, 255>, green: int<0, 255>, blue: int<0, 255>, alpha: int<0, 127>}', 'im'=>'resource', 'col'=>'int'], |
| 4561 | +'imagecolorstotal' => ['int<0, 256>', 'im'=>'resource'], |
4562 | 4562 | 'imagecolortransparent' => ['int', 'im'=>'resource', 'col='=>'int'],
|
4563 | 4563 | 'imageconvolution' => ['bool', 'src_im'=>'resource', 'matrix3x3'=>'array', 'div'=>'float', 'offset'=>'float'],
|
4564 | 4564 | 'imagecopy' => ['bool', 'dst_im'=>'resource', 'src_im'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_w'=>'int', 'src_h'=>'int'],
|
4565 | 4565 | 'imagecopymerge' => ['bool', 'src_im'=>'resource', 'dst_im'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_w'=>'int', 'src_h'=>'int', 'pct'=>'int'],
|
4566 | 4566 | 'imagecopymergegray' => ['bool', 'src_im'=>'resource', 'dst_im'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_w'=>'int', 'src_h'=>'int', 'pct'=>'int'],
|
4567 | 4567 | 'imagecopyresampled' => ['bool', 'dst_im'=>'resource', 'src_im'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'dst_w'=>'int', 'dst_h'=>'int', 'src_w'=>'int', 'src_h'=>'int'],
|
4568 | 4568 | 'imagecopyresized' => ['bool', 'dst_im'=>'resource', 'src_im'=>'resource', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'dst_w'=>'int', 'dst_h'=>'int', 'src_w'=>'int', 'src_h'=>'int'],
|
4569 |
| -'imagecreate' => ['resource|false', 'x_size'=>'int', 'y_size'=>'int'], |
| 4569 | +'imagecreate' => ['__benevolent<resource|false>', 'x_size'=>'int', 'y_size'=>'int'], |
4570 | 4570 | 'imagecreatefrombmp' => ['resource|false', 'filename'=>'string'],
|
4571 | 4571 | 'imagecreatefromgd' => ['resource|false', 'filename'=>'string'],
|
4572 | 4572 | 'imagecreatefromgd2' => ['resource|false', 'filename'=>'string'],
|
|
4579 | 4579 | 'imagecreatefromwebp' => ['resource|false', 'filename'=>'string'],
|
4580 | 4580 | 'imagecreatefromxbm' => ['resource|false', 'filename'=>'string'],
|
4581 | 4581 | 'imagecreatefromxpm' => ['resource|false', 'filename'=>'string'],
|
4582 |
| -'imagecreatetruecolor' => ['resource|false', 'x_size'=>'int', 'y_size'=>'int'], |
| 4582 | +'imagecreatetruecolor' => ['__benevolent<resource|false>', 'x_size'=>'int', 'y_size'=>'int'], |
4583 | 4583 | 'imagecrop' => ['resource|false', 'im'=>'resource', 'rect'=>'array'],
|
4584 | 4584 | 'imagecropauto' => ['resource|false', 'im'=>'resource', 'mode='=>'int', 'threshold='=>'float', 'color='=>'int'],
|
4585 | 4585 | 'imagedashedline' => ['bool', 'im'=>'resource', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'col'=>'int'],
|
|
4639 | 4639 | 'imagesettile' => ['bool', 'image'=>'resource', 'tile'=>'resource'],
|
4640 | 4640 | 'imagestring' => ['bool', 'im'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'str'=>'string', 'col'=>'int'],
|
4641 | 4641 | 'imagestringup' => ['bool', 'im'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'str'=>'string', 'col'=>'int'],
|
4642 |
| -'imagesx' => ['int|false', 'im'=>'resource'], |
4643 |
| -'imagesy' => ['int|false', 'im'=>'resource'], |
| 4642 | +'imagesx' => ['int<1, max>', 'im'=>'resource'], |
| 4643 | +'imagesy' => ['int<1, max>', 'im'=>'resource'], |
4644 | 4644 | 'imagetruecolortopalette' => ['bool', 'im'=>'resource', 'ditherflag'=>'bool', 'colorswanted'=>'int'],
|
4645 | 4645 | 'imagettfbbox' => ['array|false', 'size'=>'float', 'angle'=>'float', 'font_file'=>'string', 'text'=>'string'],
|
4646 | 4646 | 'imagettftext' => ['array|false', 'im'=>'resource', 'size'=>'float', 'angle'=>'float', 'x'=>'int', 'y'=>'int', 'col'=>'int', 'font_file'=>'string', 'text'=>'string'],
|
|
0 commit comments