Open pawan opened 9 months ago
https://developer.adobe.com/commerce/php/tutorials/frontend/custom-checkout/add-shipping-carrier/
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:
Add a custom shipping carrier
$_code
$_isFixed
Fatal Error : Type of Vendor\CustomShipping\Model\Carrier\Customshipping:$_code must not be defined
Not required variable type declaration as it will be taken care by base class.
No response
@magento-docs @magento I am working on this
Is there an existing issue for this?
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