Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
unfulvio committed Jun 24, 2024
1 parent 93465a8 commit d96aa5f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions php/WP_Mock/API/function-mocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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());
}
}
Expand All @@ -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__));
}
}
Expand Down

0 comments on commit d96aa5f

Please sign in to comment.