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
Wed, Dec 25, 2:55 AM (6 h, 31 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6924561
Default Alt Text
D9786.diff (581 B)

Event Timeline