Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify type of $args parameter #227

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions php/WP_Mock.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public static function assertHooksAdded()
* It is possible to use Mockery methods to add expectations to the object returned, which will then be combined with any expectations that may have been passed as arguments.
*
* @param string $function function name
* @param array<string, mixed> $args optional arguments to set expectations
* @param mixed[] $args optional arguments to set expectations
* @return Mockery\Expectation
* @throws InvalidArgumentException
*/
Expand All @@ -446,7 +446,7 @@ public static function userFunction(string $function, array $args = [])
* esc_attr_e('some_value'); // echoes "some_value"
*
* @param string $function function name
* @param array<string, mixed>|scalar $args optional arguments
* @param mixed[]|scalar $args optional arguments
* @return Mockery\Expectation
* @throws InvalidArgumentException
*/
Expand All @@ -471,7 +471,7 @@ public static function echoFunction(string $function, $args = [])
* echo esc_attr('some_value'); // echoes "some_value"
*
* @param string $function function name
* @param array<string, mixed>|scalar $args function arguments (optional)
* @param mixed[]|scalar $args function arguments (optional)
* @return Mockery\Expectation
* @throws InvalidArgumentException
*/
Expand All @@ -493,7 +493,7 @@ public static function passthruFunction(string $function, $args = [])
*
* @param string|callable-string $function function to alias
* @param string|callable-string $aliasFunction actual function
* @param array<int|string, mixed>|scalar $args optional arguments
* @param mixed[]|scalar $args optional arguments
* @return Mockery\Expectation
* @throws InvalidArgumentException
*/
Expand Down