Page MenuHomeDevCentral

D114.diff
No OneTemporary

D114.diff

diff --git a/app/Analyzers/PhabricatorGroupMapping.php b/app/Analyzers/PhabricatorGroupMapping.php
--- a/app/Analyzers/PhabricatorGroupMapping.php
+++ b/app/Analyzers/PhabricatorGroupMapping.php
@@ -29,7 +29,7 @@
*
* @var array
*/
- public $words;
+ public $words = [];
///
/// Helper methods
diff --git a/app/Analyzers/PhabricatorPayloadAnalyzer.php b/app/Analyzers/PhabricatorPayloadAnalyzer.php
--- a/app/Analyzers/PhabricatorPayloadAnalyzer.php
+++ b/app/Analyzers/PhabricatorPayloadAnalyzer.php
@@ -114,7 +114,7 @@
// Words
foreach ($this->configuration->groupsMapping as $mapping) {
- if ($mapping->doesStoryBelong($story)) {
+ if ($mapping->doesStoryBelong($this->story)) {
return $mapping->group;
}
}
diff --git a/app/Phabricator/PhabricatorStory.php b/app/Phabricator/PhabricatorStory.php
--- a/app/Phabricator/PhabricatorStory.php
+++ b/app/Phabricator/PhabricatorStory.php
@@ -137,10 +137,17 @@
$method,
[ 'phids[0]' => $objectPHID ]
);
+ if (!count($reply) || !property_exists($reply, $objectPHID)) {
+ return "";
+ }
return $reply->$objectPHID->repositoryPHID;
}
public function getItemProjectsPHIDs ($method, $objectPHID) {
+ if (!$objectPHID) {
+ return [];
+ }
+
$api = PhabricatorAPI::forInstance($this->instance);
$reply = $api->call(
$method,

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 18:29 (22 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252895
Default Alt Text
D114.diff (1 KB)

Event Timeline