File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \CatalogUrlRewrite \Model \Category \Plugin \Category ;
7
7
8
- use Magento \Catalog \Model \ Category ;
8
+ use Magento \Catalog \Api \ Data \ CategoryInterface ;
9
9
use Magento \CatalogUrlRewrite \Model \Category \ChildrenCategoriesProvider ;
10
10
use Magento \CatalogUrlRewrite \Model \CategoryUrlRewriteGenerator ;
11
11
use Magento \CatalogUrlRewrite \Model \ProductUrlRewriteGenerator ;
@@ -43,13 +43,14 @@ public function __construct(
43
43
*
44
44
* @param \Magento\Catalog\Model\CategoryRepository $subject
45
45
* @param callable $proceed
46
- * @param Category $category
46
+ * @param CategoryInterface $category
47
47
* @return mixed
48
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
48
49
*/
49
50
public function aroundDelete (
50
51
\Magento \Catalog \Model \CategoryRepository $ subject ,
51
52
\Closure $ proceed ,
52
- Category $ category
53
+ CategoryInterface $ category
53
54
) {
54
55
$ categoryIds = $ this ->childrenCategoriesProvider ->getChildrenIds ($ category , true );
55
56
$ categoryIds [] = $ category ->getId ();
You can’t perform that action at this time.
0 commit comments