generated from AdobeDocs/dev-site-documentation-template
-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Which topic?
https://developer.adobe.com/commerce/php/tutorials/frontend/custom-checkout/add-shipping-carrier/
What's wrong with the content?
In the guide for Add a custom shipping carrier section 3 i.e. https://developer.adobe.com/commerce/php/tutorials/frontend/custom-checkout/add-shipping-carrier/#step-3-create-the-carrier-model at line number 20 and 22, variables $_code and $_isFixed type declaration not required and if we add variable type, Will give fatal error like:
Fatal Error : Type of Vendor\CustomShipping\Model\Carrier\Customshipping:$_code must not be defined
What changes do you propose?
Not required variable type declaration as it will be taken care by base class.
Anything else that can help to cover this?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done