Skip to content

Commit 23ad12a

Browse files
committed
Fixed annotations for setData()
setData() should return objects class - that inherits from
1 parent 2f5fc97 commit 23ad12a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/Magento/Catalog/Model/AbstractModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function isLockedAttribute($attributeCode)
179179
*
180180
* @param string|array $key
181181
* @param mixed $value
182-
* @return \Magento\Framework\DataObject
182+
* @return $this
183183
*/
184184
public function setData($key, $value = null)
185185
{

app/code/Magento/Customer/Model/Address/AbstractAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function setStreet($street)
272272
*
273273
* @param array|string $key
274274
* @param null $value
275-
* @return \Magento\Framework\DataObject
275+
* @return $this
276276
*/
277277
public function setData($key, $value = null)
278278
{

app/code/Magento/Sales/Model/Order/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ protected function implodeStreetValue($value)
174174
*
175175
* @param array|string $key
176176
* @param null $value
177-
* @return \Magento\Framework\DataObject
177+
* @return $this
178178
*/
179179
public function setData($key, $value = null)
180180
{

app/code/Magento/Widget/Block/BlockInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function addData(array $arr);
3535
*
3636
* @param string|array $key
3737
* @param mixed $value
38-
* @return \Magento\Framework\DataObject
38+
* @return $this
3939
*/
4040
public function setData($key, $value = null);
4141
}

0 commit comments

Comments
 (0)