Skip to content

Commit

Permalink
Fixed PHPStan warnings for branch "next" (PHP 8.1) (OpenMage#3269)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Jul 11, 2023
1 parent 5ea608f commit b836666
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
12 changes: 0 additions & 12 deletions app/code/core/Mage/Api/Model/Wsdl/Config/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,6 @@ public function getAttributes($source, $namespace = null)
return $attributes;
}

/**
* @deprecated due to conflict with PHP8 parent class update
* @param Varien_Simplexml_Element $source
* @return array
*/
#[\ReturnTypeWillChange]
public function getChildren($source = null)
{
Mage::log('Use of deprecated method: ' . __METHOD__);
return self::_getChildren($source);
}

/**
* Return children of all namespaces
*
Expand Down
4 changes: 2 additions & 2 deletions app/code/core/Mage/Media/Model/File/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function delete(Mage_Media_Model_Image $object)
* Create image resource for operation from file
*
* @param Mage_Media_Model_Image $object
* @return bool|false|resource
* @return false|GdImage|resource
* @throws Mage_Core_Exception
*/
public function getImage(Mage_Media_Model_Image $object)
Expand Down Expand Up @@ -112,7 +112,7 @@ public function getImage(Mage_Media_Model_Image $object)
* Create tmp image resource for operations
*
* @param Mage_Media_Model_Image $object
* @return resource
* @return false|GdImage|resource
*/
public function getTmpImage(Mage_Media_Model_Image $object)
{
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Varien/Io/Ftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Varien_Io_Ftp extends Varien_Io_Abstract
/**
* An FTP connection
*
* @var resource
* @var false|resource|FTP\Connection
*/
protected $_conn;

Expand Down

0 comments on commit b836666

Please sign in to comment.