diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-11-08 23:29:12 +0100 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-11-11 14:54:55 +0100 |
| commit | 27e83d0fb87c04b61441fb77e963dd4e14ad187e (patch) | |
| tree | 1b35b21c48c54f353e643d29dd2306d8e1ba084a /ext/pspell/pspell.stub.php | |
| parent | 2804ea612779b89d3c62d974eb35783dd31f7dee (diff) | |
| download | php-git-27e83d0fb87c04b61441fb77e963dd4e14ad187e.tar.gz | |
Add union return types for function stubs
Diffstat (limited to 'ext/pspell/pspell.stub.php')
| -rw-r--r-- | ext/pspell/pspell.stub.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/pspell/pspell.stub.php b/ext/pspell/pspell.stub.php index 4d33d789f3..bf49093e85 100644 --- a/ext/pspell/pspell.stub.php +++ b/ext/pspell/pspell.stub.php @@ -1,18 +1,14 @@ <?php -/** @return int|false */ -function pspell_new(string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, int $mode = 0) {} +function pspell_new(string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, int $mode = 0): int|false {} -/** @return int|false */ -function pspell_new_personal(string $personal, string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, $mode = 0) {} +function pspell_new_personal(string $personal, string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, $mode = 0): int|false {} -/** @return int|false */ -function pspell_new_config(int $config) {} +function pspell_new_config(int $config): int|false {} function pspell_check(int $pspell, string $word): bool {} -/** @return array|false */ -function pspell_suggest(int $pspell, string $word) {} +function pspell_suggest(int $pspell, string $word): array|false {} function pspell_store_replacement(int $pspell, string $misspell, string $correct): bool {} |
