Skip to content

Commit f082ca2

Browse files
authored
Merge pull request #84 from johnbillion/apply_filters-tests
2 parents 5d598d5 + 5cd019c commit f082ca2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/data/apply_filters.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,21 @@
169169
/** This filter is documented in foo.php */
170170
$value = apply_filters('foo', 123);
171171
assertType('mixed', $value);
172+
173+
/**
174+
* Return type for `apply_filters_ref_array()`.
175+
*
176+
* @param string $foo Hello.
177+
* @param int $bar World.
178+
*/
179+
$value = apply_filters_ref_array('foo', ['Hello', 123]);
180+
assertType('string', $value);
181+
182+
/**
183+
* Return type for `apply_filters_deprecated()`.
184+
*
185+
* @param string $foo Hello.
186+
* @param bool $bar World.
187+
*/
188+
$value = apply_filters_deprecated('foo', 'Hello', true);
189+
assertType('string', $value);

0 commit comments

Comments
 (0)