Fix PHPStan errors
This commit is contained in:
committed by
M. Shull
parent
3ff55d85a9
commit
ab097d356a
@@ -2,8 +2,12 @@
|
||||
namespace MailPoet\WP;
|
||||
|
||||
class Functions {
|
||||
static private $instance;
|
||||
|
||||
static private $instance;
|
||||
|
||||
/**
|
||||
* @return Functions
|
||||
*/
|
||||
static function get() {
|
||||
if (self::$instance == null) {
|
||||
self::$instance = new Functions;
|
||||
@@ -154,7 +158,10 @@ class Functions {
|
||||
function currentUserCan() {
|
||||
return call_user_func_array('current_user_can', func_get_args());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return \WP_Role | null
|
||||
*/
|
||||
function getRole() {
|
||||
return call_user_func_array('get_role', func_get_args());
|
||||
}
|
||||
|
Reference in New Issue
Block a user