Merge pull request #2272 from woocommerce/PCP-3138-double-slash-in-messaging-configurator-script-path

double slash in messaging configurator script path (3138)
This commit is contained in:
Emili Castells 2024-05-29 12:46:21 +02:00 committed by GitHub
commit 5b9057bb01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,12 +17,14 @@ use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
return array(
'paylater-configurator.url' => static function ( ContainerInterface $container ): string {
/**
* The return value must not contain a trailing slash.
*
* Cannot return false for this path.
*
* @psalm-suppress PossiblyFalseArgument
*/
return plugins_url(
'/modules/ppcp-paylater-configurator/',
'/modules/ppcp-paylater-configurator',
dirname( realpath( __FILE__ ), 3 ) . '/woocommerce-paypal-payments.php'
);
},