We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d738882 commit 1065ae7Copy full SHA for 1065ae7
src/Support/ReflectionClosure.php
@@ -1169,8 +1169,14 @@ protected function getClosureNamespaceName()
1169
{
1170
$ns = $this->getNamespaceName();
1171
1172
+ $name = $this->getName();
1173
+
1174
// First class callables...
- if ($this->getName() !== '{closure}' && empty($ns) && ! is_null($this->getClosureScopeClass())) {
1175
+ if ($name !== '{closure}'
1176
+ && ! str_contains($name, '{closure:/')
1177
+ && ! str_contains($name, '{closure:\\')
1178
+ && empty($ns)
1179
+ && ! is_null($this->getClosureScopeClass())) {
1180
$ns = $this->getClosureScopeClass()->getNamespaceName();
1181
}
1182
0 commit comments