Skip to content

Commit 3f22973

Browse files
committed
Apply types
1 parent 1cafd40 commit 3f22973

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Config/Layouts.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ class Layouts extends BaseConfig
88
{
99
/**
1010
* The default layout to use.
11-
*
12-
* @var string
1311
*/
14-
public $default = 'Tatter\Layouts\Views\Layouts\Default';
12+
public string $default = 'Tatter\Layouts\Views\Layouts\Default';
1513

1614
/**
1715
* Provides a fallback to the default layout

tests/ConfigTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
*/
88
final class ConfigTest extends TestCase
99
{
10-
public function testUsesDefaultAsFallback()
10+
public function testUsesDefaultAsFallback(): void
1111
{
1212
$result = config('Layouts')->banana;
1313

1414
$this->assertSame('Tatter\Layouts\Views\Layouts\Default', $result);
1515
}
1616

17-
public function testSupportsRegistrars()
17+
public function testSupportsRegistrars(): void
1818
{
1919
$result = config('Layouts')->foo;
2020

0 commit comments

Comments
 (0)