Skip to content

Commit d982b4d

Browse files
authored
Merge branch 'main' into chart-js
2 parents 16a8ba5 + 615b0d1 commit d982b4d

File tree

13 files changed

+28
-33
lines changed

13 files changed

+28
-33
lines changed

.phpstan.dist.baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3415,11 +3415,6 @@ parameters:
34153415
count: 2
34163416
path: app/code/core/Mage/Directory/Model/Observer.php
34173417

3418-
-
3419-
message: "#^Parameter \\#2 \\$countryId of method Mage_Directory_Model_Resource_Region\\:\\:_loadByCountry\\(\\) expects int, string given\\.$#"
3420-
count: 2
3421-
path: app/code/core/Mage/Directory/Model/Resource/Region.php
3422-
34233418
-
34243419
message: "#^Left side of && is always true\\.$#"
34253420
count: 1

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,9 @@ See: https://docs.openmage.org/
2121

2222
---
2323

24-
## Public Communication
24+
## Sponsorship
2525

26-
* [Discord](https://discord.gg/EV8aNbU) (maintained by Flyingmana)
27-
28-
## Maintainers
29-
30-
* [Daniel Fahlke](https://github.com/Flyingmana)
31-
* [David Robinson](https://github.com/drobinson)
32-
* [Fabrizio Balliano](https://github.com/fballiano)
33-
* [Lee Saferite](https://github.com/LeeSaferite)
34-
* [Mohamed Elidrissi](https://github.com/elidrissidev)
35-
* [Ng Kiat Siong](https://github.com/kiatng)
36-
* [Tymoteusz Motylewski](https://github.com/tmotyl)
26+
* [opencollective](https://opencollective.com/openmage) (maintained by [Daniel Fahlke](https://github.com/Flyingmana) and [Colin Mollenhour](https://github.com/colinmollenhour))
3727

3828
## License
3929

app/Mage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ public static function getControllerInstance($class, $request, $response, array
577577
}
578578

579579
/**
580-
* Retrieve resource vodel object singleton
580+
* Retrieve resource model object singleton
581581
*
582582
* @param string $modelClass
583583
* @return object

app/code/core/Mage/Catalog/Model/Category.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
* @method $this setIncludeInMenu(int $value)
4646
* @method bool getInitialSetupFlag()
4747
* @method $this setInitialSetupFlag(bool $value)
48-
* @method bool getIsActive()
49-
* @method $this setIsActive(bool $value)
50-
* @method bool getIsAnchor()
51-
* @method $this setIsAnchor(bool $value)
48+
* @method int getIsActive()
49+
* @method $this setIsActive(int $value)
50+
* @method int getIsAnchor()
51+
* @method $this setIsAnchor(int $value)
5252
* @method $this setIsChangedProductList(bool $bool)
5353
*
5454
* @method int getLandingPage()

app/code/core/Mage/Checkout/controllers/CartController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,14 @@ public function estimatePostAction()
533533
$regionId = (string) $this->getRequest()->getParam('region_id');
534534
$region = (string) $this->getRequest()->getParam('region');
535535

536+
try {
537+
Mage::getModel('directory/country')->loadByCode($country);
538+
} catch (Mage_Core_Exception $e) {
539+
$this->_getSession()->addError($e->getMessage());
540+
$this->_goBack();
541+
return;
542+
}
543+
536544
$this->_getQuote()->getShippingAddress()
537545
->setCountryId($country)
538546
->setCity($city)

app/code/core/Mage/Core/Model/Abstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ protected function _beforeSave()
441441
* Get list of cache tags applied to model object.
442442
* Return false if cache tags are not supported by model
443443
*
444-
* @return array | false
444+
* @return array|false
445445
*/
446446
public function getCacheTags()
447447
{
@@ -467,7 +467,7 @@ public function getCacheTags()
467467
/**
468468
* Get cache tags associated with object id
469469
*
470-
* @return array|bool
470+
* @return array|false
471471
*/
472472
public function getCacheIdTags()
473473
{

app/code/core/Mage/Core/Model/Resource/Resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function _loadVersionData($needType)
8484
* Get Module version from DB
8585
*
8686
* @param string $resName
87-
* @return bool|string
87+
* @return string|false
8888
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
8989
*/
9090
public function getDbVersion($resName)

app/code/core/Mage/Directory/Model/Resource/Country/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @package Mage_Directory
2222
*
2323
* @property Mage_Directory_Model_Country[] $_items
24+
* @method Mage_Directory_Model_Country getFirstItem()
25+
* @method Mage_Directory_Model_Country getLastItem()
2426
*/
2527
class Mage_Directory_Model_Resource_Country_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract
2628
{

app/code/core/Mage/Directory/Model/Resource/Region.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function _getLoadSelect($field, $value, $object)
8484
* Load object by country id and code or default name
8585
*
8686
* @param Mage_Core_Model_Abstract $object
87-
* @param int $countryId
87+
* @param string $countryId
8888
* @param string $value
8989
* @param string $field
9090
*

app/code/core/Mage/Eav/Model/Entity/Attribute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*
2323
* @method Mage_Eav_Model_Resource_Entity_Attribute _getResource()
2424
* @method Mage_Eav_Model_Resource_Entity_Attribute getResource()
25+
* @method Mage_Eav_Model_Resource_Entity_Attribute_Collection getCollection()
2526
* @method Mage_Eav_Model_Resource_Entity_Attribute_Collection getResourceCollection()
2627
*
2728
* @method int getAttributeGroupId()

0 commit comments

Comments
 (0)