Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14055241
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
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)
Attached To
Mode
D9786: Don't atomize closures
Attached
Detach File
Event Timeline
Log In to Comment