intelephense
1.14.41.16.1
lib/stub/readline/readline.phplib/stub/readline/readline.php+7−3
Index: package/lib/stub/readline/readline.php
===================================================================
--- package/lib/stub/readline/readline.php
+++ package/lib/stub/readline/readline.php
@@ -2,8 +2,9 @@
//modified by Mewburn Projects Pty Ltd
// Start of readline v.5.5.3-1ubuntu2.1
use __IDE\ArrayShape;
+use __IDE\LanguageLevelTypeAware;
/**
* Reads a line
* @link https://php.net/manual/en/function.readline.php
@@ -57,16 +58,18 @@
* The line to be added in the history.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
-function readline_add_history(string $prompt): bool {}
+#[LanguageLevelTypeAware(['8.5' => 'true'], default: 'bool')]
+function readline_add_history(string $prompt) {}
/**
* Clears the history
* @link https://php.net/manual/en/function.readline-clear-history.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
-function readline_clear_history(): bool {}
+#[LanguageLevelTypeAware(['8.5' => 'true'], default: 'bool')]
+function readline_clear_history() {}
/**
* Lists the history
* @link https://php.net/manual/en/function.readline-list-history.php
@@ -117,9 +120,10 @@
* user input returned.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
-function readline_callback_handler_install(string $prompt, callable $callback): bool {}
+#[LanguageLevelTypeAware(['8.5' => 'true'], default: 'bool')]
+function readline_callback_handler_install(string $prompt, callable $callback) {}
/**
* Reads a character and informs the readline callback interface when a line is received
* @link https://php.net/manual/en/function.readline-callback-read-char.php