mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +01:00
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:
parent
f1d1ec3d77
commit
271e104c7e
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue