mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 16:24:33 +08:00
Fix lint.
This commit is contained in:
parent
562a9eed4c
commit
59b5af65bd
1 changed files with 12 additions and 0 deletions
|
@ -45,7 +45,19 @@ class AdminNotices implements ModuleInterface {
|
||||||
|
|
||||||
add_action(
|
add_action(
|
||||||
Repository::NOTICES_FILTER,
|
Repository::NOTICES_FILTER,
|
||||||
|
/**
|
||||||
|
* Adds persisted notices to the notices array.
|
||||||
|
*
|
||||||
|
* @param array $notices The notices.
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @psalm-suppress MissingClosureParamType
|
||||||
|
*/
|
||||||
function ( $notices ) use ( $c ) {
|
function ( $notices ) use ( $c ) {
|
||||||
|
if ( ! is_array( $notices ) ) {
|
||||||
|
return $notices;
|
||||||
|
}
|
||||||
|
|
||||||
$admin_notices = $c->get( 'admin-notices.repository' );
|
$admin_notices = $c->get( 'admin-notices.repository' );
|
||||||
assert( $admin_notices instanceof Repository );
|
assert( $admin_notices instanceof Repository );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue