We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d85ff34 commit 267b151Copy full SHA for 267b151
CHANGELOG.md
@@ -10,6 +10,9 @@
10
### Changed
11
- Webhooks now requires Craft 3.7 or later.
12
13
+### Fixed
14
+- Fixed an error that could occur when calling `craft\webhooks\Plugin::getRequestData()` if an invalid request ID was passed.
15
+
16
## 2.3.3 - 2021-04-01
17
18
### Fixed
src/Plugin.php
@@ -338,7 +338,7 @@ public function getRequestData(int $requestId): array
338
->one();
339
340
if (!$data) {
341
- throw new InvalidArgumentException('Invalid webhook request ID: ' . $this->requestId);
+ throw new InvalidArgumentException('Invalid webhook request ID: ' . $requestId);
342
}
343
344
if ($data['requestHeaders']) {
0 commit comments