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 981821a commit 7cfd68bCopy full SHA for 7cfd68b
packages/schemas/src/Components/Concerns/HasKey.php
@@ -32,7 +32,9 @@ public function getKey(bool $isAbsolute = true): ?string
32
return $this->cachedAbsoluteKey;
33
}
34
35
- $key = $this->evaluate($this->key) ?? $this->getStatePath(isAbsolute: false);
+ $key = ($this->isKeyInheritable() || (! $this->hasStatePath()))
36
+ ? ($this->evaluate($this->key) ?? $this->getStatePath(isAbsolute: false))
37
+ : $this->getStatePath(isAbsolute: false);
38
39
if (! $isAbsolute) {
40
return $key;
0 commit comments