Skip to content
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

Fixed PHPStan warnings for branch "next" (PHP 8.1) #3269

Merged
merged 9 commits into from
Jul 11, 2023
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
kiatng marked this conversation as resolved.
Show resolved Hide resolved
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
2 changes: 1 addition & 1 deletion lib/Varien/Io/Ftp.php
kiatng marked this conversation as resolved.
Show resolved Hide resolved
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
Loading