xref: /PHP-8.2/ext/intl/tests/bug74705.phpt (revision 74859783)
1--TEST--
2Bug #74705 Wrong reflection on Collator::getSortKey
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7$rm = new ReflectionMethod(Collator::class, 'getSortKey');
8var_dump($rm->getNumberOfParameters());
9var_dump($rm->getNumberOfRequiredParameters());
10
11$rf = new ReflectionFunction('collator_get_sort_key');
12var_dump($rf->getNumberOfParameters());
13var_dump($rf->getNumberOfRequiredParameters());
14?>
15--EXPECT--
16int(1)
17int(1)
18int(2)
19int(2)
20