Suppress PhanDeprecatedFunction message for stripe

This commit is contained in:
MDW 2024-03-20 20:49:03 +01:00
parent 44ef0de1ef
commit 5ee5a4ac2c
No known key found for this signature in database

View File

@ -4,6 +4,7 @@
* Copyright (C) 2017 Saasprov <saasprov@gmail.com>
* Copyright (C) 2018-2022 Thibault FOUCART <support@ptibogxiv.net>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -256,6 +257,7 @@ if (empty($conf->stripeconnect->enabled)) {
}
}
$endpoint->url = $url;
// @phan-suppress-next-line PhanDeprecatedFunction
$endpoint->save();
if ($endpoint->status == 'enabled') {
@ -328,6 +330,7 @@ if (empty($conf->stripeconnect->enabled)) {
}
}
$endpoint->url = $url;
// @phan-suppress-next-line PhanDeprecatedFunction
$endpoint->save();
if ($endpoint->status == 'enabled') {
print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=ipn&webhook='.$endpoint->id.'&status=0">';