verbb / postie

A Craft Commerce shipping calculator plugin.
Other
12 stars 18 forks source link

`Order::setEmail()` has been deprecated #131

Closed bennonite closed 3 months ago

bennonite commented 3 months ago

Describe the bug

I have a fresh install of Postie with a UPS provider created and creds entered. I'm trying out the Rates Testing tab with the default addresses left as is. Clicking the test rate button returns Order::setEmail() has been deprecated use Order::setCustomer() instead.

test rates

Steps to reproduce

  1. Install a provider
  2. Go to Rates Testing
  3. Click "Test Rates" button

Craft CMS version

4.5

Plugin version

4.0.2

Multi-site?

No response

Additional context

No response

engram-design commented 3 months ago

As it's a deprecation warning you must have it enabled to throw an error for a warning?

Fixed for the next release. To get this early, run composer require verbb/postie:"dev-craft-4 as 4.0.2".

bennonite commented 3 months ago

Ah you're right, that was it. Thank you!