mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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 {
|
||||
$site_url = get_site_url( get_current_blog_id() );
|
||||
$hash = md5( $site_url );
|
||||
$letters = preg_replace( '~\d~', '', $hash );
|
||||
return $letters ? substr( $letters, 0, 6 ) . '-' : '';
|
||||
$letters = preg_replace( '~\d~', '', $hash ) ?? '';
|
||||
$prefix = substr( $letters, 0, 6 );
|
||||
return $prefix ? $prefix . '-' : '';
|
||||
} )(),
|
||||
'screens' => array(
|
||||
State::STATE_START,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue