Skip to content

Commit c24b57f

Browse files
committed
update doc
1 parent a5efb0a commit c24b57f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
# PHP class to logs rotation
33

4-
PHP Class to rotate log files
5-
64
This PHP package allows you to rotate a log file and compress it.
75

86
[![tests](https://github.com/cesargb/php-log-rotation/workflows/tests/badge.svg)](https://github.com/cesargb/php-log-rotation/actions)

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ parameters:
55
- tests
66

77
# The level 9 is the highest level
8-
level: 5
8+
level: 6

src/ErrorHandler.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
namespace Cesargb\Log;
44

55
use Cesargb\Log\Exceptions\RotationFailed;
6+
use Closure;
67
use Throwable;
78

89
trait ErrorHandler
910
{
10-
private $thenCallback = null;
11+
private ?Closure $thenCallback = null;
1112

12-
private $catchCallable = null;
13+
private ?Closure $catchCallable = null;
1314

14-
private $finallyCallback = null;
15+
private ?Closure $finallyCallback = null;
1516

1617
private ?string $_filename = null;
1718

0 commit comments

Comments
 (0)