Skip to content

Commit 39b0606

Browse files
authored
Fix method signature compliance
1 parent 3d864bb commit 39b0606

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Setup/Patch/Data/PopulateCategoryCodeV1.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getAliases(): array
3636
/**
3737
* @throws Exception
3838
*/
39-
public function apply(): void
39+
public function apply(): self
4040
{
4141
$collection = $this->collecionFactory->create();
4242
$categories = $collection->addAttributeToSelect([
@@ -79,5 +79,7 @@ public function apply(): void
7979
$this->resourceCategory->saveAttribute($category, 'category_code');
8080
}
8181
}
82+
83+
return $this;
8284
}
8385
}

0 commit comments

Comments
 (0)