Skip to content

Commit db881b3

Browse files
Add null as possible return type for getItemById method's PHPDocs
1 parent 594a590 commit db881b3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Eav/Test/Unit/Model/Entity/Collection/AbstractCollectionStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AbstractCollectionStub extends AbstractCollection
1616
* Retrieve item by id
1717
*
1818
* @param mixed $id
19-
* @return DataObject
19+
* @return DataObject|null
2020
*/
2121
public function getItemById($id)
2222
{

app/code/Magento/Eav/Test/Unit/Model/Entity/Collection/VersionControl/AbstractCollectionStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AbstractCollectionStub extends AbstractCollection
1919
* Retrieve item by id
2020
*
2121
* @param mixed $id
22-
* @return DataObject
22+
* @return DataObject|null
2323
*/
2424
public function getItemById($id)
2525
{

lib/internal/Magento/Framework/Data/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ protected function _toOptionHash($valueField = 'id', $labelField = 'name')
825825
* Retrieve item by id
826826
*
827827
* @param string|int $idValue
828-
* @return DataObject
828+
* @return DataObject|null
829829
*/
830830
public function getItemById($idValue)
831831
{

0 commit comments

Comments
 (0)