Page MenuHomePhabricator

D9786.diff
No OneTemporary

D9786.diff

diff --git a/src/applications/diviner/atomizer/DivinerPHPAtomizer.php b/src/applications/diviner/atomizer/DivinerPHPAtomizer.php
--- a/src/applications/diviner/atomizer/DivinerPHPAtomizer.php
+++ b/src/applications/diviner/atomizer/DivinerPHPAtomizer.php
@@ -22,6 +22,11 @@
$name = $func->getChildByIndex(2);
+ // Don't atomize closures
+ if ($name->getTypeName() === 'n_EMPTY') {
+ continue;
+ }
+
$atom = $this->newAtom(DivinerAtom::TYPE_FUNCTION)
->setName($name->getConcreteString())
->setLine($func->getLineNumber())

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 9:47 AM (2 d, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6740131
Default Alt Text
D9786.diff (581 B)

Event Timeline