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 f43a3af commit 26be37dCopy full SHA for 26be37d
packages/framework/src/Foundation/Concerns/HasKernelData.php
@@ -50,7 +50,7 @@ public function authors(): Collection
50
protected function parseConfigurationAuthors(Collection $authors): Collection
51
{
52
return $authors->mapWithKeys(function (PostAuthor $author, string $username): array {
53
- return [$username ?: $author->username => $author];
+ return [$username => tap($author, fn (PostAuthor $author) => $author->username = $username)];
54
});
55
}
56
0 commit comments