Skip to content

Commit 8924b86

Browse files
author
Michał Biarda
committed
#ZZ01-147 Removed return type from entity getId method
1 parent 8849b75 commit 8924b86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/model/Api/Data/{{ entityName|pascal }}Interface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface {{ entityName|pascal }}Interface
66
/**
77
* @return int|null
88
*/
9-
public function getId(): ?int;
9+
public function getId();
1010

1111
/**
1212
* @param int $value

templates/model/Model/{{ entityName|pascal }}.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function _construct(): void
1414
$this->_init({{ entityName|pascal }}ResourceModel::class);
1515
}
1616

17-
public function getId(): ?int
17+
public function getId():
1818
{
1919
return $this->_getData('entity_id');
2020
}

0 commit comments

Comments
 (0)