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.
PostAuthor::getName()
1 parent 1baa0c3 commit 2f54b9fCopy full SHA for 2f54b9f
packages/framework/src/Framework/Features/Blogging/Models/PostAuthor.php
@@ -8,6 +8,7 @@
8
use Stringable;
9
use Hyde\Facades\Author;
10
use Illuminate\Support\Collection;
11
+use JetBrains\PhpStorm\Deprecated;
12
use Hyde\Support\Concerns\Serializable;
13
use Hyde\Support\Contracts\SerializableContract;
14
@@ -126,6 +127,10 @@ public function toArray(): array
126
127
]);
128
}
129
130
+ /**
131
+ * @deprecated This is not needed as the name property can be accessed directly.
132
+ */
133
+ #[Deprecated(reason: 'Use the name property instead.', replacement: '%class%->name')]
134
public function getName(): string
135
{
136
return $this->name;
0 commit comments