Skip to content

Commit be26b71

Browse files
committed
Properly pass the bot_name to the entity constructor.
1 parent 20cc1b9 commit be26b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entities/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function __call($method, $args)
141141
$sub_entities = $this->subEntities();
142142

143143
if (isset($sub_entities[$property_name])) {
144-
return new $sub_entities[$property_name]($property);
144+
return new $sub_entities[$property_name]($property, $this->getProperty('bot_name'));
145145
}
146146

147147
return $property;

0 commit comments

Comments
 (0)