Skip to content

Commit f00c735

Browse files
author
Mohan Ahuja
committed
ACP2E-345: Unable to save product URL key with a hyphen "-" at end.
- Fixed static failures in Setup Patch Data file
1 parent 3425ca4 commit f00c735

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app/code/Magento/Catalog/Setup/Patch/Data/UpdateProductUrlKey.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1414

1515
/**
16-
* Class UpdateProductUrlKey
17-
*
18-
* @package Magento\Catalog\Setup\Patch
16+
* Class UpdateProductUrlKey for updating description and validation class
1917
*/
2018
class UpdateProductUrlKey implements DataPatchInterface, PatchVersionInterface
2119
{
@@ -43,7 +41,7 @@ public function __construct(
4341
}
4442

4543
/**
46-
* {@inheritdoc}
44+
* @inheritdoc
4745
*/
4846
public function apply()
4947
{
@@ -58,10 +56,11 @@ public function apply()
5856
'frontend_class' => 'validate-identifier-clean'
5957
]
6058
);
59+
return $this;
6160
}
6261

6362
/**
64-
* {@inheritdoc}
63+
* @inheritdoc
6564
*/
6665
public static function getDependencies()
6766
{
@@ -72,15 +71,15 @@ public static function getDependencies()
7271
}
7372

7473
/**
75-
* {@inheritdoc}
74+
* @inheritdoc
7675
*/
7776
public static function getVersion()
7877
{
7978
return '2.4.5';
8079
}
8180

8281
/**
83-
* {@inheritdoc}
82+
* @inheritdoc
8483
*/
8584
public function getAliases()
8685
{

0 commit comments

Comments
 (0)