Skip to content

Commit 3cbd72c

Browse files
committed
Correct variable names
1 parent ffc316f commit 3cbd72c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

vips.stub.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ function vips_image_new_from_file(string $filename, ?array $options = []): array
1010
/**
1111
* @return array<string, mixed>|int
1212
*/
13-
function vips_image_new_from_buffer(string $filename, ?string $option_string = "", ?array $options = []): array|int {}
13+
function vips_image_new_from_buffer(string $buffer, ?string $option_string = "", ?array $options = []): array|int {}
1414

1515
/**
1616
* @return resource
1717
*/
18-
function vips_image_new_from_array(array $coefficients, ?float $scale = 1.0, ?float $offset = 0.0) {}
18+
function vips_image_new_from_array(array $array, ?float $scale = 1.0, ?float $offset = 0.0) {}
1919

2020
/**
2121
* @param resource $image

vips_arginfo.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 2c585e3b2e9c42b5c4b45b08ca338e5aade5614f */
2+
* Stub hash: b0a895aa400527f647c2f9bd728c4e8a94cb0c9b */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_vips_image_new_from_file, 0, 1, MAY_BE_ARRAY|MAY_BE_LONG)
55
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
66
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "[]")
77
ZEND_END_ARG_INFO()
88

99
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_vips_image_new_from_buffer, 0, 1, MAY_BE_ARRAY|MAY_BE_LONG)
10-
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
10+
ZEND_ARG_TYPE_INFO(0, buffer, IS_STRING, 0)
1111
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, option_string, IS_STRING, 1, "\"\"")
1212
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "[]")
1313
ZEND_END_ARG_INFO()
1414

1515
ZEND_BEGIN_ARG_INFO_EX(arginfo_vips_image_new_from_array, 0, 0, 1)
16-
ZEND_ARG_TYPE_INFO(0, coefficients, IS_ARRAY, 0)
16+
ZEND_ARG_TYPE_INFO(0, array, IS_ARRAY, 0)
1717
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_DOUBLE, 1, "1.0")
1818
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_DOUBLE, 1, "0.0")
1919
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)