Skip to content

Commit

Permalink
Wrong variable name in API
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix128 committed Mar 6, 2018
1 parent fb94ab2 commit 9cf4409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Model/AdapterEngine/AdminPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public function __construct(

/**
* Execute engine and return true on success. Throw exception on failure.
* @param string $emailMessage
* @param string $message
* @param array $params
* @return bool
* @throws \InvalidArgumentException
*/
public function execute(string $emailMessage, array $params = []): bool
public function execute(string $message, array $params = []): bool
{
if (!isset($params[self::PARAM_USERS])) {
throw new \InvalidArgumentException('' . __('Missing users parameters'));
Expand All @@ -74,7 +74,7 @@ public function execute(string $emailMessage, array $params = []): bool
/** @var AdminPushInterface $adminPush */
$adminPush = $this->adminPushInterfaceFactory->create();

$adminPush->setMessage($emailMessage);
$adminPush->setMessage($message);
$adminPush->setCreatedAt(date('Y-m-d H:i:s'));
$adminPush->setUserName($user);
$adminPush->setParamsJson($this->serializer->serialize($params));
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MSP_NotifierAdminPushAdapter" setup_version="0.1.1">
<module name="MSP_NotifierAdminPushAdapter" setup_version="0.1.2">
<sequence>
<module name="Magento_User"/>

Expand Down

0 comments on commit 9cf4409

Please sign in to comment.