From ca15221d3b4229383721ede19ed8f0175f5246bc Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:45:27 +0100 Subject: [PATCH] Issue 18 test. --- tests/issue-18/hooks.md | 8 +++----- tests/issue-18/test-issue-18.php | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/issue-18/hooks.md b/tests/issue-18/hooks.md index 270c081..a72a3c2 100644 --- a/tests/issue-18/hooks.md +++ b/tests/issue-18/hooks.md @@ -11,16 +11,14 @@ ### `some_condition_filter` -*Test issue 18.* - **Arguments** Argument | Type | Description -------- | ---- | ----------- -`$some_condition` | `bool` | Condition. -`$some_other_parameter` | `mixed` | Other parameter. +`$some_condition` | | +`$some_other_parameter` | | -Source: [tests/issue-18/test-issue-18.php](test-issue-18.php), [line 11](test-issue-18.php#L11-L19) +Source: [tests/issue-18/test-issue-18.php](test-issue-18.php), [line 19](test-issue-18.php#L19-L19)
Generated by Pronamic WordPress Documentor 1.2.0
diff --git a/tests/issue-18/test-issue-18.php b/tests/issue-18/test-issue-18.php index fbb8de5..bf76b58 100644 --- a/tests/issue-18/test-issue-18.php +++ b/tests/issue-18/test-issue-18.php @@ -16,6 +16,6 @@ * @param mixed $some_other_parameter Other parameter. * @return bool */ -if ( apply_filters( 'some_condition_filter', $some_condition, $some_other_parameter ) ) { +if ( (bool) apply_filters( 'some_condition_filter', $some_condition, $some_other_parameter ) ) { do_something(); }