Update DivinerAtomController for a long-ago change to the docblock parser API
Summary: Ref T13505. See that task for discussion. Test Plan: Ran `diviner generate` locally, found a page fataling on this `strlen()`, applied patch, got a sketchy but not-broken page. Maniphest Tasks: T13505 Differential Revision: https://secure.phabricator.com/D21061
This commit is contained in:
@@ -435,9 +435,7 @@ final class DivinerAtomController extends DivinerController {
|
||||
$task_specs = array();
|
||||
|
||||
$tasks = $symbol->getAtom()->getDocblockMetaValue('task');
|
||||
if (strlen($tasks)) {
|
||||
$tasks = phutil_split_lines($tasks, $retain_endings = false);
|
||||
|
||||
if ($tasks) {
|
||||
foreach ($tasks as $task) {
|
||||
list($name, $title) = explode(' ', $task, 2);
|
||||
$name = trim($name);
|
||||
|
||||
Reference in New Issue
Block a user