Skip to content

Commit cae0bcb

Browse files
committed
Fix parameter name
Levenshtein is about insertion, replacement and deletion. Closes GH-6560.
1 parent b2fba0e commit cae0bcb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ function iptcparse(string $iptc_block): array|false {}
10121012

10131013
/* levenshtein.c */
10141014

1015-
function levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $repetition_cost = 1, int $deletion_cost = 1): int {}
1015+
function levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1): int {}
10161016

10171017
/* link.c */
10181018

ext/standard/basic_functions_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: 4edb7cad23ccb051dbe267b3979e98892607c98f */
2+
* Stub hash: 21e54280829776de72313b96e38ad2aee60bd0ee */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -1554,7 +1554,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_levenshtein, 0, 2, IS_LONG, 0)
15541554
ZEND_ARG_TYPE_INFO(0, string1, IS_STRING, 0)
15551555
ZEND_ARG_TYPE_INFO(0, string2, IS_STRING, 0)
15561556
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, insertion_cost, IS_LONG, 0, "1")
1557-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, repetition_cost, IS_LONG, 0, "1")
1557+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, replacement_cost, IS_LONG, 0, "1")
15581558
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deletion_cost, IS_LONG, 0, "1")
15591559
ZEND_END_ARG_INFO()
15601560

0 commit comments

Comments
 (0)