mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Fix psalm
This commit is contained in:
parent
e29ef9c7d6
commit
a5af3677e2
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
if (!defined('PAYPAL_INTEGRATION_DATE')) {
|
||||
define('PAYPAL_INTEGRATION_DATE', '2023-06-02');
|
||||
}
|
||||
if (!defined('EP_PAGES')) {
|
||||
define('EP_PAGES', 4096);
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ class CancelController {
|
|||
/**
|
||||
* Runs the controller.
|
||||
*/
|
||||
public function run() {
|
||||
public function run(): void {
|
||||
$param_name = self::NONCE;
|
||||
if ( isset( $_GET[ $param_name ] ) && // Input var ok.
|
||||
wp_verify_nonce(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue