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 f389ef4 commit afbbb64Copy full SHA for afbbb64
packages/framework/src/Framework/Features/Blogging/Models/PostAuthor.php
@@ -8,6 +8,7 @@
8
use Hyde\Facades\Author;
9
use Hyde\Facades\Config;
10
use Illuminate\Support\Collection;
11
+use JetBrains\PhpStorm\Deprecated;
12
13
use function strtolower;
14
use function is_string;
@@ -85,6 +86,10 @@ public function __toString(): string
85
86
return $this->getName();
87
}
88
89
+ /**
90
+ * @deprecated This is not needed as the name property can be accessed directly.
91
+ */
92
+ #[Deprecated(reason: 'Use the name property instead.', replacement: '%class%->name')]
93
public function getName(): string
94
{
95
return $this->name;
0 commit comments