mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-14 19:28:40 +00:00
fix registration, login and billing
This commit is contained in:
parent
cca5b6d94b
commit
9bbebedc40
|
|
@ -271,11 +271,11 @@ class Item implements \JsonSerializable
|
||||||
*
|
*
|
||||||
* @param string $attrName Attribute name
|
* @param string $attrName Attribute name
|
||||||
*
|
*
|
||||||
* @return null|ItemAttributeValue
|
* @return null|ItemAttribute
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getAttribute(string $attrName) : ?ItemAttributeValue
|
public function getAttribute(string $attrName) : ?ItemAttribute
|
||||||
{
|
{
|
||||||
foreach ($this->attributes as $attribute) {
|
foreach ($this->attributes as $attribute) {
|
||||||
if ($attribute->type->name === $attrName) {
|
if ($attribute->type->name === $attrName) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user