Skip to content

Commit 5a2e0c9

Browse files
committed
Fix typo in argument name.
Should be filename, not data, since this is the hash_file() function.
1 parent e55de6a commit 5a2e0c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crc_fast.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ 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?
9898
* @param null|int $chunkSize
9999
*
100100
* @return string
101101
*/
102-
function hash_file(int $algorithm, string $data, bool $binary = false, ?int $chunkSize = null): string
102+
function hash_file(int $algorithm, string $filename, bool $binary = false, ?int $chunkSize = null): string
103103
{
104104
}
105105

crc_fast_arginfo.h

Lines changed: 2 additions & 2 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: a276f54aa3ef775b2d672c4af68bc4a594ee3174 */
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,7 +9,7 @@ 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")
1414
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, chunkSize, IS_LONG, 1, "null")
1515
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)