Skip to content

Commit

Permalink
Issue 18 test.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Feb 21, 2024
1 parent 5106700 commit ca15221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions tests/issue-18/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.2.0</code></em><p>
Expand Down
2 changes: 1 addition & 1 deletion tests/issue-18/test-issue-18.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit ca15221

Please sign in to comment.