-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove strict typing to allow
::type( 'int' )
`\WP_Mock\Functions::type( 'int' )`
- Loading branch information
1 parent
22898a2
commit 7d01fcb
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -552,12 +552,12 @@ public static function getDeprecatedMethodListener(): DeprecatedMethodListener | |
* | ||
* @param string $action the action hook name | ||
* @param string|callable-string|callable|Type $callback the callable to be removed | ||
* @param ?int $priority the priority it should be registered at | ||
* @param ?int|Type $priority the priority it should be registered at | ||
* | ||
* @return void | ||
* @throws InvalidArgumentException | ||
*/ | ||
public static function expectActionRemoved(string $action, $callback, ?int $priority = null) : void | ||
public static function expectActionRemoved(string $action, $callback, $priority = null) : void | ||
Check failure on line 560 in php/WP_Mock.php GitHub Actions / php-static-analysis
Check failure on line 560 in php/WP_Mock.php GitHub Actions / php-static-analysis
|
||
{ | ||
self::userFunction( | ||
'remove_action', | ||
|
@@ -573,7 +573,7 @@ public static function expectActionRemoved(string $action, $callback, ?int $prio | |
* | ||
* @param string $action the action hook name | ||
* @param null|string|callable-string|callable|Type $callback the callable to be removed | ||
* @param ?int $priority optional priority for the registered callback that is being removed | ||
* @param ?int|Type $priority optional priority for the registered callback that is being removed | ||
* | ||
* @return void | ||
* @throws InvalidArgumentException | ||
|
@@ -594,12 +594,12 @@ public static function expectActionNotRemoved(string $action, $callback, $priori | |
* | ||
* @param string $filter the filter name | ||
* @param string|callable-string|callable|Type $callback the callable to be removed | ||
* @param ?int $priority the registered priority | ||
* @param ?int|Type $priority the registered priority | ||
* | ||
* @return void | ||
* @throws InvalidArgumentException | ||
*/ | ||
public static function expectFilterRemoved(string $filter, $callback, ?int $priority = null) : void | ||
public static function expectFilterRemoved(string $filter, $callback, $priority = null) : void | ||
Check failure on line 602 in php/WP_Mock.php GitHub Actions / php-static-analysis
Check failure on line 602 in php/WP_Mock.php GitHub Actions / php-static-analysis
|
||
{ | ||
self::userFunction( | ||
'remove_filter', | ||
|
@@ -615,7 +615,7 @@ public static function expectFilterRemoved(string $filter, $callback, ?int $prio | |
* | ||
* @param string $filter the filter name | ||
* @param null|string|callable-string|callable|Type $callback the callable to be removed | ||
* @param ?int $priority optional priority for the registered callback that is being removed | ||
* @param ?int|Type $priority optional priority for the registered callback that is being removed | ||
* | ||
* @return void | ||
* @throws InvalidArgumentException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters