Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14407431
D9786.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
581 B
Referenced Files
None
Subscribers
None
D9786.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9786: Don't atomize closures
Attached
Detach File
Event Timeline
Log In to Comment