mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Fix Psalm problems
This commit is contained in:
parent
aeb840ff5f
commit
6742229345
1 changed files with 3 additions and 2 deletions
|
@ -422,8 +422,9 @@ return function ( ContainerInterface $container, array $fields ): array {
|
||||||
'default' => ( static function (): string {
|
'default' => ( static function (): string {
|
||||||
$site_url = get_site_url( get_current_blog_id() );
|
$site_url = get_site_url( get_current_blog_id() );
|
||||||
$hash = md5( $site_url );
|
$hash = md5( $site_url );
|
||||||
$letters = preg_replace( '~\d~', '', $hash );
|
$letters = preg_replace( '~\d~', '', $hash ) ?? '';
|
||||||
return $letters ? substr( $letters, 0, 6 ) . '-' : '';
|
$prefix = substr( $letters, 0, 6 );
|
||||||
|
return $prefix ? $prefix . '-' : '';
|
||||||
} )(),
|
} )(),
|
||||||
'screens' => array(
|
'screens' => array(
|
||||||
State::STATE_START,
|
State::STATE_START,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue