File tree 1 file changed +9
-7
lines changed
src/Symfony/Component/Notifier/Notification 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,21 @@ class Notification
36
36
public const IMPORTANCE_MEDIUM = 'medium ' ;
37
37
public const IMPORTANCE_LOW = 'low ' ;
38
38
39
+ private array $ channels = [];
40
+ private string $ subject = '' ;
39
41
private string $ content = '' ;
40
42
private string $ emoji = '' ;
41
43
private ?FlattenException $ exception = null ;
42
44
private string $ exceptionAsString = '' ;
43
45
private string $ importance = self ::IMPORTANCE_HIGH ;
44
46
45
- public function __construct (
46
- private string $ subject = '' ,
47
- /**
48
- * @var list<string>
49
- */
50
- private array $ channels = [],
51
- ) {
47
+ /**
48
+ * @param list< string> $channels
49
+ */
50
+ public function __construct ( string $ subject = '' , array $ channels = [])
51
+ {
52
+ $ this -> subject = $ subject ;
53
+ $ this -> channels = $ channels ;
52
54
}
53
55
54
56
/**
You can’t perform that action at this time.
0 commit comments