Page MenuHomeDevCentral

D261.diff
No OneTemporary

D261.diff

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

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)

Event Timeline