Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3770602
D261.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
574 B
Referenced Files
None
Subscribers
None
D261.diff
View Options
diff --git a/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php b/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
--- a/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
+++ b/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
@@ -47,6 +47,10 @@
* @param stdClass $payload
*/
public function __construct($project, $event, $payload) {
+ if (!is_object($payload)) {
+ throw new \InvalidArgumentException("Payload must be an object.");
+ }
+
$this->project = $project;
$this->event = $event;
$this->payload = $payload;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 20:55 (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2261017
Default Alt Text
D261.diff (574 B)
Attached To
Mode
D261: GitHubPayloadAnalyzer exception when payload isn't an object
Attached
Detach File
Event Timeline
Log In to Comment