mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

One error condition was returning null instead of false. Adjust the implementation to look the same way as the exact same check a few lines below.
26 lines
668 B
PHP
26 lines
668 B
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
class Normalizer
|
|
{
|
|
/**
|
|
* @tentative-return-type
|
|
* @alias normalizer_normalize
|
|
*/
|
|
public static function normalize(string $string, int $form = Normalizer::FORM_C): string|false {}
|
|
|
|
/**
|
|
* @tentative-return-type
|
|
* @alias normalizer_is_normalized
|
|
*/
|
|
public static function isNormalized(string $string, int $form = Normalizer::FORM_C): bool {}
|
|
|
|
#if U_ICU_VERSION_MAJOR_NUM >= 56
|
|
/**
|
|
* @tentative-return-type
|
|
* @alias normalizer_get_raw_decomposition
|
|
*/
|
|
public static function getRawDecomposition(string $string, int $form = Normalizer::FORM_C): ?string {}
|
|
#endif
|
|
}
|