craftcms / shopify

Synchronize and extend product data from your Shopify storefront.
MIT License
45 stars 25 forks source link

Fixed return value for actionSaveSettings #39

Closed vnali closed 1 year ago

vnali commented 1 year ago

Description saving API Connection tab without filling inputs throws an error craft\shopify\controllers\SettingsController::actionSaveSettings(): Return value must be of type yii\web\Response, null returned

this PR adds null to accepted return values.

AugustMiller commented 1 year ago

Hey, thanks for the report and patch! We had a couple more related items come up that we wanted to patch, but your changes have been incorporated into #40.

The only difference is that we've opted for craft\web\Response return types, and only made it nullable on the actionSaveSettings method, as actionIndex should always return a rendered template.