Skip to content

Commit d190ea1

Browse files
committed
Fix creation method
1 parent a28d1c0 commit d190ea1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Message.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,11 @@ public static function createRequestMessageV2($id,string $method,$params=null):
211211
* @param object|array|null $params
212212
* @param bool $version2
213213
* @return NotificationMessage
214+
* @throws JSONRPCException
214215
*/
215216
public static function createNotification(string $method,$params=null,bool $version2=true): NotificationMessage{
216217
if($version2){
217-
return self::createNotificationMessageV1($method,$params);
218+
return self::createNotificationMessageV2($method,$params);
218219
}
219220
return self::createNotificationMessageV1($method,$params ?? []);
220221
}

0 commit comments

Comments
 (0)