From d96aa5f8acfaa0f0a51a9547022331c6eba389b9 Mon Sep 17 00:00:00 2001 From: Fulvio Notarstefano Date: Tue, 25 Jun 2024 01:39:47 +0900 Subject: [PATCH] Update comment --- php/WP_Mock/API/function-mocks.php | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/php/WP_Mock/API/function-mocks.php b/php/WP_Mock/API/function-mocks.php index 96fc63d..1e74915 100644 --- a/php/WP_Mock/API/function-mocks.php +++ b/php/WP_Mock/API/function-mocks.php @@ -87,7 +87,7 @@ function apply_filters($tag, $value) */ function esc_html() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -98,7 +98,7 @@ function esc_html() : string */ function esc_attr() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -109,7 +109,7 @@ function esc_attr() : string */ function esc_url() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -120,7 +120,7 @@ function esc_url() : string */ function esc_url_raw() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -131,7 +131,7 @@ function esc_url_raw() : string */ function esc_js() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -142,7 +142,7 @@ function esc_js() : string */ function esc_textarea() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -153,7 +153,7 @@ function esc_textarea() : string */ function __() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -164,7 +164,7 @@ function __() : string */ function _e() : void { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ Handler::handlePredefinedEchoFunction(__FUNCTION__, func_get_args()); } } @@ -175,7 +175,7 @@ function _e() : void */ function _x() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -186,7 +186,7 @@ function _x() : string */ function esc_html__() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -197,7 +197,7 @@ function esc_html__() : string */ function esc_html_e() : void { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ Handler::handlePredefinedEchoFunction(__FUNCTION__, func_get_args()); } } @@ -208,7 +208,7 @@ function esc_html_e() : void */ function esc_html_x() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -219,7 +219,7 @@ function esc_html_x() : string */ function esc_attr__() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -230,7 +230,7 @@ function esc_attr__() : string */ function esc_attr_e() : void { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ Handler::handlePredefinedEchoFunction(__FUNCTION__, func_get_args()); } } @@ -241,7 +241,7 @@ function esc_attr_e() : void */ function esc_attr_x() : string { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ return Handler::handlePredefinedReturnFunction(__FUNCTION__, func_get_args()); } } @@ -264,7 +264,7 @@ function _n() : string return (string) $args[1]; } } else { - /** @phpstan-ignore-next-line to prevent flagging the function as throwable in codebases requiring WP_Mock */ + /** @phpstan-ignore-next-line to prevent flagging the function as throwing exception in codebases requiring WP_Mock */ throw new ExpectationFailedException(sprintf('Too few arguments to function %s', __FUNCTION__)); } }