Skip to content

Commit

Permalink
Fix magento#21684 - fix class imported
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartlomiejsz committed Dec 9, 2019
1 parent 2c70512 commit 2a5c87c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/code/Magento/Catalog/Model/Category/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Magento\Framework\App\RequestInterface;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Filesystem;
use Magento\Framework\Registry;
use Magento\Framework\Stdlib\ArrayManager;
use Magento\Framework\Stdlib\ArrayUtils;
Expand Down Expand Up @@ -168,7 +167,7 @@ class DataProvider extends ModifierPoolDataProvider
private $arrayUtils;

/**
* @var Filesystem
* @var FileInfo
*/
private $fileInfo;

Expand All @@ -195,7 +194,7 @@ class DataProvider extends ModifierPoolDataProvider
* @param ArrayUtils|null $arrayUtils
* @param ScopeOverriddenValue|null $scopeOverriddenValue
* @param ArrayManager|null $arrayManager
* @param Filesystem|null $fileInfo
* @param FileInfo|null $fileInfo
* @throws LocalizedException
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
Expand All @@ -217,7 +216,7 @@ public function __construct(
?ArrayUtils $arrayUtils = null,
ScopeOverriddenValue $scopeOverriddenValue = null,
ArrayManager $arrayManager = null,
Filesystem $fileInfo = null
FileInfo $fileInfo = null
) {
$this->eavValidationRules = $eavValidationRules;
$this->collection = $categoryCollectionFactory->create();
Expand All @@ -232,7 +231,7 @@ public function __construct(
$this->scopeOverriddenValue = $scopeOverriddenValue ?:
ObjectManager::getInstance()->get(ScopeOverriddenValue::class);
$this->arrayManager = $arrayManager ?: ObjectManager::getInstance()->get(ArrayManager::class);
$this->fileInfo = $fileInfo ?: ObjectManager::getInstance()->get(Filesystem::class);
$this->fileInfo = $fileInfo ?: ObjectManager::getInstance()->get(FileInfo::class);

parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data, $pool);
}
Expand Down

0 comments on commit 2a5c87c

Please sign in to comment.