Skip to content

Commit ee3ea9d

Browse files
ext/readline: update return typehints from bool to true
These always return true
1 parent 6dd67bb commit ee3ea9d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/readline/readline.stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ function readline(?string $prompt = null): string|false {}
1313
/** @param int|string|bool|null $value */
1414
function readline_info(?string $var_name = null, $value = null): mixed {}
1515

16-
function readline_add_history(string $prompt): bool {}
16+
function readline_add_history(string $prompt): true {}
1717

18-
function readline_clear_history(): bool {}
18+
function readline_clear_history(): true {}
1919

2020
#ifdef HAVE_HISTORY_LIST
2121
/**
@@ -33,7 +33,7 @@ function readline_completion_function(callable $callback): bool {}
3333

3434

3535
#ifdef HAVE_RL_CALLBACK_READ_CHAR
36-
function readline_callback_handler_install(string $prompt, callable $callback): bool {}
36+
function readline_callback_handler_install(string $prompt, callable $callback): true {}
3737

3838
function readline_callback_read_char(): void {}
3939

ext/readline/readline_arginfo.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)