Skip to content

Commit ed0cf9c

Browse files
committed
Typed properties
1 parent e040848 commit ed0cf9c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/About/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Controller
99
/**
1010
* @var string
1111
*/
12-
protected $message;
12+
protected string $message;
1313

1414
/**
1515
* @param string $message

src/Console/Example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Example
1212
/**
1313
* @var ViewModel
1414
*/
15-
protected $model;
15+
protected ViewModel $model;
1616

1717
/**
1818
* @param ViewModel $model

src/Home/ViewModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ViewModel
1616
/**
1717
* @var string
1818
*/
19-
private $title = 'Demo Application';
19+
private string $title = 'Demo Application';
2020

2121
/**
2222
* @return string

0 commit comments

Comments
 (0)