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
Sat, Nov 9, 12:30 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6740131
Default Alt Text
D9786.diff (581 B)

Event Timeline