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.
getFullKey
1 parent 3db77e9 commit 344770eCopy full SHA for 344770e
src/Support/Exposer/Builder.php
@@ -131,8 +131,13 @@ public function setProtected(bool $protected): void
131
public function getFullKey(): ?string
132
{
133
$key = $this->getKey();
134
- $keyContext = $this->getContextKey();
135
- return $keyContext . (empty($key) ? null : (empty($keyContext) ? $key : '.' . $key));
+ $context = $this->getContextKey();
+
136
+ if ($key === null || $key === '') {
137
+ return $context ?: null;
138
+ }
139
140
+ return $context ? "{$context}.{$key}" : $key;
141
}
142
143
/**
0 commit comments