1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/enchant/enchant.stub.php
DanielEScherzer 171501b93f Replace @deprecated with #[\Deprecated] for internal constants (#18780)
Only covers constants declared via stub files, others will be handled
separately in a later commit.

Does not include the intl extension, since that had some errors relating to the
cpp code; that extension will be updated separately.
2025-06-26 11:27:15 -07:00

119 lines
3.5 KiB
PHP

<?php
/** @generate-class-entries */
/**
* @var int
* @cvalue PHP_ENCHANT_MYSPELL
*/
#[\Deprecated(since: '8.0', message: 'as enchant_broker_get_dict_path() and enchant_broker_set_dict_path() are deprecated')]
const ENCHANT_MYSPELL = UNKNOWN;
/**
* @var int
* @cvalue PHP_ENCHANT_ISPELL
*/
#[\Deprecated(since: '8.0', message: 'as enchant_broker_get_dict_path() and enchant_broker_set_dict_path() are deprecated')]
const ENCHANT_ISPELL = UNKNOWN;
#ifdef HAVE_ENCHANT_GET_VERSION
/**
* @var string
* @cvalue PHP_ENCHANT_GET_VERSION
*/
const LIBENCHANT_VERSION = UNKNOWN;
#endif
/**
* @strict-properties
* @not-serializable
*/
final class EnchantBroker
{
}
/**
* @strict-properties
* @not-serializable
*/
final class EnchantDictionary
{
}
function enchant_broker_init(): EnchantBroker|false {}
#[\Deprecated(since: '8.0', message: 'as EnchantBroker objects are freed automatically')]
function enchant_broker_free(EnchantBroker $broker): bool {}
function enchant_broker_get_error(EnchantBroker $broker): string|false {}
#[\Deprecated(since: '8.0')]
function enchant_broker_set_dict_path(EnchantBroker $broker, int $type, string $path): bool {}
#[\Deprecated(since: '8.0')]
function enchant_broker_get_dict_path(EnchantBroker $broker, int $type): string|false {}
/**
* @return array<int, array>
* @refcount 1
*/
function enchant_broker_list_dicts(EnchantBroker $broker): array {}
function enchant_broker_request_dict(EnchantBroker $broker, string $tag): EnchantDictionary|false {}
function enchant_broker_request_pwl_dict(EnchantBroker $broker, string $filename): EnchantDictionary|false {}
#[\Deprecated(since: '8.0', message: 'as EnchantDictionary objects are freed automatically')]
function enchant_broker_free_dict(EnchantDictionary $dictionary): bool {}
function enchant_broker_dict_exists(EnchantBroker $broker, string $tag): bool {}
function enchant_broker_set_ordering(EnchantBroker $broker, string $tag, string $ordering): bool {}
/**
* @return array<int, array>
* @refcount 1
*/
function enchant_broker_describe(EnchantBroker $broker): array {}
/** @param array $suggestions */
function enchant_dict_quick_check(EnchantDictionary $dictionary, string $word, &$suggestions = null): bool {}
function enchant_dict_check(EnchantDictionary $dictionary, string $word): bool {}
/**
* @return array<int, string>
* @refcount 1
*/
function enchant_dict_suggest(EnchantDictionary $dictionary, string $word): array {}
function enchant_dict_add(EnchantDictionary $dictionary, string $word): void {}
function enchant_dict_remove(EnchantDictionary $dictionary, string $word): void {}
/**
* @alias enchant_dict_add
*/
#[\Deprecated(since: '8.0', message: 'use enchant_dict_add() instead')]
function enchant_dict_add_to_personal(EnchantDictionary $dictionary, string $word): void {}
function enchant_dict_add_to_session(EnchantDictionary $dictionary, string $word): void {}
function enchant_dict_remove_from_session(EnchantDictionary $dictionary, string $word): void {}
function enchant_dict_is_added(EnchantDictionary $dictionary, string $word): bool {}
/**
* @alias enchant_dict_is_added
*/
#[\Deprecated(since: '8.0', message: 'use enchant_dict_is_added() instead')]
function enchant_dict_is_in_session(EnchantDictionary $dictionary, string $word): bool {}
function enchant_dict_store_replacement(EnchantDictionary $dictionary, string $misspelled, string $correct): void {}
function enchant_dict_get_error(EnchantDictionary $dictionary): string|false {}
/**
* @return array<string, string>
* @refcount 1
*/
function enchant_dict_describe(EnchantDictionary $dictionary): array {}