-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhpStan: some fixes #4705
base: main
Are you sure you want to change the base?
PhpStan: some fixes #4705
Conversation
|
* @var array | ||
* @var Mage_Sales_Model_Quote_Address|array | ||
*/ | ||
protected $_address = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magento-lts/app/code/core/Mage/Checkout/Block/Cart/Shipping.php
Lines 56 to 67 in d3b15b3
/** | |
* Get Address Model | |
* | |
* @return Mage_Sales_Model_Quote_Address | |
*/ | |
public function getAddress() | |
{ | |
if (empty($this->_address)) { | |
$this->_address = $this->getQuote()->getShippingAddress(); | |
} | |
return $this->_address; | |
} |
$_address
cannot be an array:
* @var array | |
* @var Mage_Sales_Model_Quote_Address|array | |
*/ | |
protected $_address = []; | |
* @var Mage_Sales_Model_Quote_Address | |
*/ | |
protected $_address; |
What do you think?
Some progress here ... :)