Skip to content

Commit c51b1d4

Browse files
author
eduard13
committed
Declared strict_types. Fixed the params order and changed the reference to a public type.
1 parent 4ecce14 commit c51b1d4

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

app/code/Magento/Backend/Block/Media/Uploader.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Backend\Block\Media;
79

810
/**
@@ -28,20 +30,20 @@ class Uploader extends \Magento\Backend\Block\Widget
2830
protected $_fileSizeService;
2931

3032
/**
31-
* @var \Magento\Framework\Image\Config
33+
* @var \Magento\Framework\Image\Adapter\ConfigInterface
3234
*/
3335
protected $imageConfig;
3436

3537
/**
3638
* @param \Magento\Backend\Block\Template\Context $context
3739
* @param \Magento\Framework\File\Size $fileSize
40+
* @param \Magento\Framework\Image\Adapter\ConfigInterface $imageConfig
3841
* @param array $data
39-
* @param \Magento\Framework\Image\Adapter\Config $imageConfig
4042
*/
4143
public function __construct(
4244
\Magento\Backend\Block\Template\Context $context,
4345
\Magento\Framework\File\Size $fileSize,
44-
\Magento\Framework\Image\Adapter\Config $imageConfig,
46+
\Magento\Framework\Image\Adapter\ConfigInterface $imageConfig,
4547
array $data = []
4648
) {
4749
$this->_fileSizeService = $fileSize;
@@ -90,7 +92,7 @@ public function getFileSizeService()
9092
/**
9193
* Get image config
9294
*
93-
* @return \Magento\Framework\Image\Adapter\Config
95+
* @return \Magento\Framework\Image\Adapter\ConfigInterface
9496
*/
9597
public function getImageConfigService()
9698
{

app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Content/Uploader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content;
79

810
/**
@@ -21,14 +23,15 @@ class Uploader extends \Magento\Backend\Block\Media\Uploader
2123
/**
2224
* @param \Magento\Backend\Block\Template\Context $context
2325
* @param \Magento\Framework\File\Size $fileSize
26+
* @param \Magento\Framework\Image\Adapter\ConfigInterface $imageConfig
2427
* @param \Magento\Cms\Model\Wysiwyg\Images\Storage $imagesStorage
2528
* @param array $data
2629
*/
2730
public function __construct(
2831
\Magento\Backend\Block\Template\Context $context,
2932
\Magento\Framework\File\Size $fileSize,
33+
\Magento\Framework\Image\Adapter\ConfigInterface $imageConfig,
3034
\Magento\Cms\Model\Wysiwyg\Images\Storage $imagesStorage,
31-
\Magento\Framework\Image\Adapter\Config $imageConfig,
3235
array $data = []
3336
) {
3437
$this->_imagesStorage = $imagesStorage;

app/code/Magento/Theme/Block/Adminhtml/Wysiwyg/Files/Content/Uploader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Theme\Block\Adminhtml\Wysiwyg\Files\Content;
79

810
/**
@@ -29,13 +31,14 @@ class Uploader extends \Magento\Backend\Block\Media\Uploader
2931
/**
3032
* @param \Magento\Backend\Block\Template\Context $context
3133
* @param \Magento\Framework\File\Size $fileSize
34+
* @param \Magento\Framework\Image\Adapter\ConfigInterface $imageConfig
3235
* @param \Magento\Theme\Helper\Storage $storageHelper
3336
* @param array $data
3437
*/
3538
public function __construct(
3639
\Magento\Backend\Block\Template\Context $context,
3740
\Magento\Framework\File\Size $fileSize,
38-
\Magento\Framework\Image\Adapter\Config $imageConfig,
41+
\Magento\Framework\Image\Adapter\ConfigInterface $imageConfig,
3942
\Magento\Theme\Helper\Storage $storageHelper,
4043
array $data = []
4144
) {

0 commit comments

Comments
 (0)