Skip to content

Commit 588226b

Browse files
authored
Merge pull request #859 from hydephp/narrow-down-mixed-return-types
Narrow down mixed return types
2 parents 03300a8 + 88a9f81 commit 588226b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

packages/framework/src/Console/Commands/MakePostCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function handle(): int
4343
return $this->createPostFile($creator);
4444
}
4545

46-
protected function getTitle(): mixed
46+
protected function getTitle(): string
4747
{
4848
$this->line($this->argument('title')
4949
? '<info>Selected title: '.$this->argument('title')."</info>\n"

packages/framework/src/Foundation/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Illuminate\Foundation\PackageManifest;
99

1010
/**
11-
* @property mixed $app
11+
* @property self $app
1212
*/
1313
class Application extends \LaravelZero\Framework\Application
1414
{

packages/framework/src/Framework/Concerns/InteractsWithFrontMatter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public function data(string $key = null, mixed $default = null): mixed
3131
* Get the front matter object, or a value from within.
3232
*
3333
* @return \Hyde\Markdown\Models\FrontMatter|mixed
34-
*
35-
* @todo Narrow down mixed return type to static + only types that can be in front matter.
3634
*/
3735
public function matter(string $key = null, mixed $default = null): mixed
3836
{

0 commit comments

Comments
 (0)