@@ -66,7 +66,7 @@ public static function fromThrowable(\Throwable $exception, array $channels = []
6666 /**
6767 * @return $this
6868 */
69- public function subject (string $ subject ): self
69+ public function subject (string $ subject ): static
7070 {
7171 $ this ->subject = $ subject ;
7272
@@ -81,7 +81,7 @@ public function getSubject(): string
8181 /**
8282 * @return $this
8383 */
84- public function content (string $ content ): self
84+ public function content (string $ content ): static
8585 {
8686 $ this ->content = $ content ;
8787
@@ -96,7 +96,7 @@ public function getContent(): string
9696 /**
9797 * @return $this
9898 */
99- public function importance (string $ importance ): self
99+ public function importance (string $ importance ): static
100100 {
101101 $ this ->importance = $ importance ;
102102
@@ -113,7 +113,7 @@ public function getImportance(): string
113113 *
114114 * @return $this
115115 */
116- public function importanceFromLogLevelName (string $ level ): self
116+ public function importanceFromLogLevelName (string $ level ): static
117117 {
118118 $ level = self ::LEVELS [strtolower ($ level )];
119119 $ this ->importance = $ level >= 500 ? self ::IMPORTANCE_URGENT : ($ level >= 400 ? self ::IMPORTANCE_HIGH : self ::IMPORTANCE_LOW );
@@ -124,7 +124,7 @@ public function importanceFromLogLevelName(string $level): self
124124 /**
125125 * @return $this
126126 */
127- public function emoji (string $ emoji ): self
127+ public function emoji (string $ emoji ): static
128128 {
129129 $ this ->emoji = $ emoji ;
130130
@@ -149,7 +149,7 @@ public function getExceptionAsString(): string
149149 /**
150150 * @return $this
151151 */
152- public function channels (array $ channels ): self
152+ public function channels (array $ channels ): static
153153 {
154154 $ this ->channels = $ channels ;
155155
0 commit comments