Skip to content

Commit

Permalink
changelog, ecs, phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Oct 14, 2024
1 parent 40ec01f commit 14688d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
- It’s now possible to manually sync Stripe customer data on Edit User pages. ([#21](https://github.com/craftcms/stripe/pull/21))
- Added support for selecting products in Link fields. ([#26](https://github.com/craftcms/stripe/pull/26))
- It’s now possible to save custom field data against a new Subscription when using a checkout form. ([#25](https://github.com/craftcms/stripe/issues/25))
- Admin privileges (but not admin changes) are now required when creating, editing, updating and deleting webhook. ([#30](https://github.com/craftcms/stripe/pull/30))
- Webhook settings are now stored in a separate table and not in the plugin’s settings. ([#30](https://github.com/craftcms/stripe/pull/30))
- Added `craft\stripe\events\StripeEvent`. ([#17](https://github.com/craftcms/stripe/issues/17))
- Added `craft\stripe\services\Webhooks::EVENT_STRIPE_EVENT`. ([#17](https://github.com/craftcms/stripe/issues/17))
- Added `craft\stripe\linktypes\Product`. ([#26](https://github.com/craftcms/stripe/pull/26))
- Deprecated `craft\stripe\models\Settings->$webhookSigningSecret` ([#30](https://github.com/craftcms/stripe/pull/30))
- Deprecated `craft\stripe\models\Settings->$webhookId` ([#30](https://github.com/craftcms/stripe/pull/30))
- Fixed a SQL error that occurred when syncing a subscriptions that were missing a `latest_invoice` value. ([#21](https://github.com/craftcms/stripe/pull/21))
- Fixed links to stripe dashboard when in live mode. ([#21](https://github.com/craftcms/stripe/pull/21))
- Stripe now requires Craft CMS 5.3.0 or later. ([#26](https://github.com/craftcms/stripe/pull/26))
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/WebhooksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Craft;
use craft\helpers\App;
use craft\helpers\UrlHelper;
use craft\stripe\records\Webhook as WebhookRecord;
use craft\stripe\Plugin;
use craft\stripe\records\Webhook as WebhookRecord;
use craft\web\Controller;
use Stripe\Exception\SignatureVerificationException;
use Stripe\Exception\UnexpectedValueException;
Expand Down
2 changes: 0 additions & 2 deletions src/records/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
namespace craft\stripe\records;

use craft\db\ActiveRecord;
use craft\records\Element;
use craft\stripe\db\Table;
use yii\db\ActiveQueryInterface;

/**
* Webhook record
Expand Down
2 changes: 1 addition & 1 deletion src/services/Webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function processEvent($event): void
*/
public function getWebhookRecord(): Webhook
{
/** @var Webhook $record */
/** @var Webhook|null $record */
$record = Webhook::find()->one();
return $record ?? new Webhook();
}
Expand Down

0 comments on commit 14688d1

Please sign in to comment.