Skip to content

Commit 1b30243

Browse files
committed
Fix typo in argument name, remove unused argument
Should be filename, not data, since this is the hash_file() function. And chunkSize isn’t used.
1 parent e55de6a commit 1b30243

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crc_fast.stub.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,12 @@ function hash(int $algorithm, string $data, bool $binary = false): string
9393
* Calculates the CRC checksum of the given file.
9494
*
9595
* @param int $algorithm
96-
* @param string $data
96+
* @param string $filename
9797
* @param bool $binary Output binary string or hex?
98-
* @param null|int $chunkSize
9998
*
10099
* @return string
101100
*/
102-
function hash_file(int $algorithm, string $data, bool $binary = false, ?int $chunkSize = null): string
101+
function hash_file(int $algorithm, string $filename, bool $binary = false): string
103102
{
104103
}
105104

crc_fast_arginfo.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4f5859e24637bb505c5d71ba5d1629d782d19230 */
2+
* Stub hash: c975a357b8cfe8f140279cc7303e17f08c0794f6 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_CrcFast_hash, 0, 2, IS_STRING, 0)
55
ZEND_ARG_TYPE_INFO(0, algorithm, IS_LONG, 0)
@@ -9,9 +9,8 @@ ZEND_END_ARG_INFO()
99

1010
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_CrcFast_hash_file, 0, 2, IS_STRING, 0)
1111
ZEND_ARG_TYPE_INFO(0, algorithm, IS_LONG, 0)
12-
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
12+
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
1313
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false")
14-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, chunkSize, IS_LONG, 1, "null")
1514
ZEND_END_ARG_INFO()
1615

1716
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_CrcFast_get_supported_algorithms, 0, 0, IS_ARRAY, 0)

0 commit comments

Comments
 (0)