Skip to content

Commit 2a5c87c

Browse files
committed
Fix #21684 - fix class imported
1 parent 2c70512 commit 2a5c87c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/code/Magento/Catalog/Model/Category/DataProvider.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Magento\Framework\App\RequestInterface;
2424
use Magento\Framework\Exception\LocalizedException;
2525
use Magento\Framework\Exception\NoSuchEntityException;
26-
use Magento\Framework\Filesystem;
2726
use Magento\Framework\Registry;
2827
use Magento\Framework\Stdlib\ArrayManager;
2928
use Magento\Framework\Stdlib\ArrayUtils;
@@ -168,7 +167,7 @@ class DataProvider extends ModifierPoolDataProvider
168167
private $arrayUtils;
169168

170169
/**
171-
* @var Filesystem
170+
* @var FileInfo
172171
*/
173172
private $fileInfo;
174173

@@ -195,7 +194,7 @@ class DataProvider extends ModifierPoolDataProvider
195194
* @param ArrayUtils|null $arrayUtils
196195
* @param ScopeOverriddenValue|null $scopeOverriddenValue
197196
* @param ArrayManager|null $arrayManager
198-
* @param Filesystem|null $fileInfo
197+
* @param FileInfo|null $fileInfo
199198
* @throws LocalizedException
200199
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
201200
*/
@@ -217,7 +216,7 @@ public function __construct(
217216
?ArrayUtils $arrayUtils = null,
218217
ScopeOverriddenValue $scopeOverriddenValue = null,
219218
ArrayManager $arrayManager = null,
220-
Filesystem $fileInfo = null
219+
FileInfo $fileInfo = null
221220
) {
222221
$this->eavValidationRules = $eavValidationRules;
223222
$this->collection = $categoryCollectionFactory->create();
@@ -232,7 +231,7 @@ public function __construct(
232231
$this->scopeOverriddenValue = $scopeOverriddenValue ?:
233232
ObjectManager::getInstance()->get(ScopeOverriddenValue::class);
234233
$this->arrayManager = $arrayManager ?: ObjectManager::getInstance()->get(ArrayManager::class);
235-
$this->fileInfo = $fileInfo ?: ObjectManager::getInstance()->get(Filesystem::class);
234+
$this->fileInfo = $fileInfo ?: ObjectManager::getInstance()->get(FileInfo::class);
236235

237236
parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data, $pool);
238237
}

0 commit comments

Comments
 (0)