File tree 2 files changed +9
-33
lines changed
2 files changed +9
-33
lines changed Original file line number Diff line number Diff line change 15
15
* GNU General Public License for more details.
16
16
*/
17
17
18
+ /**
19
+ * @phpstan-type LoggerAttachment \Closure(mixed $level, string $message) : void
20
+ */
18
21
interface AttachableLogger extends \Logger{
19
22
20
23
/**
21
- * @param LoggerAttachment $attachment
24
+ * @phpstan- param LoggerAttachment $attachment
22
25
*
23
26
* @return void
24
27
*/
25
- public function addAttachment (\LoggerAttachment $ attachment );
28
+ public function addAttachment (\Closure $ attachment );
26
29
27
30
/**
28
- * @param LoggerAttachment $attachment
31
+ * @phpstan- param LoggerAttachment $attachment
29
32
*
30
33
* @return void
31
34
*/
32
- public function removeAttachment (\LoggerAttachment $ attachment );
35
+ public function removeAttachment (\Closure $ attachment );
33
36
34
37
/**
35
38
* @return void
36
39
*/
37
40
public function removeAttachments ();
38
41
39
42
/**
40
- * @return \LoggerAttachment[]
43
+ * @return \Closure[]
44
+ * @phpstan-return LoggerAttachment[]
41
45
*/
42
46
public function getAttachments ();
43
47
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments