Set manualRenewalEnabled to false and add comment to suppress phpdoc

This commit is contained in:
inpsyde-maticluznar 2024-10-15 08:41:20 +02:00
parent 4aca5ea433
commit 4b22de2c71
No known key found for this signature in database
GPG key ID: D005973F231309F6

View file

@ -1319,7 +1319,7 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
'needShipping' => $this->need_shipping(),
'vaultingEnabled' => $this->settings->has( 'vault_enabled' ) && $this->settings->get( 'vault_enabled' ),
'productType' => null,
'manualRenewalEnabled' => '',
'manualRenewalEnabled' => false,
);
if ( is_product() ) {
@ -1330,7 +1330,11 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
}
if ( class_exists( '\WCS_Manual_Renewal_Manager' ) ) {
/** @psalm-suppress UndefinedClass */
/**
* UndefinedClass We verify the existence of the class prior to invoking a static method.
*
* @psalm-suppress
*/
$localize['manualRenewalEnabled'] = \WCS_Manual_Renewal_Manager::is_manual_renewal_enabled();
}