Skip to content

Commit

Permalink
Fixed phpstan-baseline.neon
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Oct 11, 2022
1 parent 185fb12 commit 3c82e76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
44 changes: 2 additions & 42 deletions .github/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1000,11 +1000,6 @@ parameters:
count: 1
path: ../app/code/core/Mage/Api/Model/Wsdl/Config/Element.php

-
message: "#^Return type \\(array\\) of method Mage_Api_Model_Wsdl_Config_Element\\:\\:getChildren\\(\\) should be compatible with return type \\(RecursiveIterator\\|null\\) of method RecursiveIterator\\<string,static\\(SimpleXMLElement\\)\\>\\:\\:getChildren\\(\\)$#"
count: 1
path: ../app/code/core/Mage/Api/Model/Wsdl/Config/Element.php

-
message: "#^Return type \\(void\\) of method Mage_Api2_Block_Adminhtml_Attribute_Grid\\:\\:_prepareCollection\\(\\) should be compatible with return type \\(\\$this\\(Mage_Adminhtml_Block_Widget_Grid\\)\\) of method Mage_Adminhtml_Block_Widget_Grid\\:\\:_prepareCollection\\(\\)$#"
count: 1
Expand Down Expand Up @@ -1955,11 +1950,6 @@ parameters:
count: 1
path: ../app/code/core/Mage/Catalog/Model/Product/Flat/Indexer.php

-
message: "#^Binary operation \"\\*\" between string and 1024 results in an error\\.$#"
count: 3
path: ../app/code/core/Mage/Catalog/Model/Product/Image.php

-
message: "#^Cannot call method isIndexable\\(\\) on Mage_Eav_Model_Entity_Attribute_Abstract\\|false\\.$#"
count: 1
Expand Down Expand Up @@ -3081,7 +3071,7 @@ parameters:
path: ../app/code/core/Mage/Core/Model/Resource/Setup.php

-
message: "#^Binary operation \"\\.\" between string and array results in an error\\.$#"
message: "#^Binary operation \"\\.\" between \\(string\\|false\\) and array results in an error\\.$#"
count: 1
path: ../app/code/core/Mage/Core/Model/Resource/Setup/Query/Modifier.php

Expand Down Expand Up @@ -4260,16 +4250,6 @@ parameters:
count: 2
path: ../app/code/core/Mage/Log/Model/Resource/Log.php

-
message: "#^Method Mage_Media_Model_File_Image\\:\\:getImage\\(\\) should return bool\\|resource but returns GdImage\\.$#"
count: 1
path: ../app/code/core/Mage/Media/Model/File/Image.php

-
message: "#^Method Mage_Media_Model_File_Image\\:\\:getTmpImage\\(\\) should return resource but returns GdImage\\|false\\.$#"
count: 1
path: ../app/code/core/Mage/Media/Model/File/Image.php

-
message: "#^Property Mage_Media_Model_Image\\:\\:\\$_image \\(resource\\) does not accept null\\.$#"
count: 1
Expand Down Expand Up @@ -4416,7 +4396,7 @@ parameters:
path: ../app/code/core/Mage/Payment/Model/Method/Abstract.php

-
message: "#^Binary operation \"\\*\\=\" between string and 2 results in an error\\.$#"
message: "#^Binary operation \"\\-\" between string and int\\<\\-9, 9\\> results in an error\\.$#"
count: 1
path: ../app/code/core/Mage/Payment/Model/Method/Cc.php

Expand Down Expand Up @@ -5755,26 +5735,6 @@ parameters:
count: 1
path: ../app/code/core/Mage/Tax/Model/Sales/Total/Quote/Tax.php

-
message: "#^Binary operation \"\\*\" between string and 1024 results in an error\\.$#"
count: 1
path: ../app/code/core/Mage/Uploader/Helper/File.php

-
message: "#^Binary operation \"\\*\" between string and 1048576 results in an error\\.$#"
count: 1
path: ../app/code/core/Mage/Uploader/Helper/File.php

-
message: "#^Binary operation \"\\*\" between string and 1073741824 results in an error\\.$#"
count: 1
path: ../app/code/core/Mage/Uploader/Helper/File.php

-
message: "#^Binary operation \"\\*\" between string and 1099511627776 results in an error\\.$#"
count: 1
path: ../app/code/core/Mage/Uploader/Helper/File.php

-
message: "#^Method Mage_Widget_Block_Adminhtml_Widget_Chooser\\:\\:getConfig\\(\\) should return Varien_Object but returns mixed\\.$#"
count: 2
Expand Down
4 changes: 2 additions & 2 deletions app/code/core/Mage/Customer/Block/Form/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ public function getCountryId()
*/
public function getRegion()
{
if ($region = $this->getFormData()->getRegion() !== false) {
if (($region = $this->getFormData()->getRegion()) !== false) {
return $region;
}

if ($region = $this->getFormData()->getRegionId() !== false) {
if (($region = $this->getFormData()->getRegionId()) !== false) {
return $region;
}
return null;
Expand Down

0 comments on commit 3c82e76

Please sign in to comment.