From 7628f64d93593e18ee0afa478eacf32cefe8a82c Mon Sep 17 00:00:00 2001 From: Demin Yin Date: Mon, 24 Jun 2024 22:13:17 -0700 Subject: [PATCH] update annotation @since Signed-off-by: Demin Yin --- src/swoole/constants.php | 6 +++--- src/swoole/functions.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/swoole/constants.php b/src/swoole/constants.php index b8d2d59..d424128 100644 --- a/src/swoole/constants.php +++ b/src/swoole/constants.php @@ -96,9 +96,9 @@ define('SWOOLE_ERROR_PROTOCOL_ERROR', 508); define('SWOOLE_ERROR_WRONG_OPERATION', 509); define('SWOOLE_ERROR_PHP_RUNTIME_NOTICE', 510); // @since 5.1.0 -define('SWOOLE_ERROR_FOR_TEST', 511); // @since 6.0.0-alpha -define('SWOOLE_ERROR_UNDEFINED_BEHAVIOR', 600); // @since 6.0.0-alpha -define('SWOOLE_ERROR_NOT_THREAD_SAFETY', 601); // @since 6.0.0-alpha +define('SWOOLE_ERROR_FOR_TEST', 511); // @since 6.0.0 +define('SWOOLE_ERROR_UNDEFINED_BEHAVIOR', 600); // @since 6.0.0 +define('SWOOLE_ERROR_NOT_THREAD_SAFETY', 601); // @since 6.0.0 define('SWOOLE_ERROR_FILE_NOT_EXIST', 700); define('SWOOLE_ERROR_FILE_TOO_LARGE', 701); define('SWOOLE_ERROR_FILE_EMPTY', 702); diff --git a/src/swoole/functions.php b/src/swoole/functions.php index 0808055..fc058c4 100644 --- a/src/swoole/functions.php +++ b/src/swoole/functions.php @@ -256,6 +256,7 @@ function swoole_substr_json_decode(string $str, int $offset, int $length, bool $ /** * Triggers a fatal error when the string passed in is "fatal_error"; otherwise nothing happens. * + * @since 6.0.0 * @internal This function is for testing purposes only when running unit tests in CI pipelines. * @pseudocode-included This is a built-in method in Swoole. The PHP code included inside this method is for explanation purpose only. */