Skip to content

Commit 0e76259

Browse files
committed
doc: add RotationFailed type
1 parent 730ae10 commit 0e76259

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ Or you can define the options in the constructor
3939

4040
```php
4141
use Cesargb\Log\Rotation;
42+
use Cesargb\Log\Exceptions\RotationFailed;
4243

4344
$rotation = new Rotation([
4445
'files' => 1,
4546
'compress' => true,
4647
'min-size' => 10,
4748
'then' => function ($filename) {},
48-
'catch' => function ($error) {},
49+
'catch' => function (RotationFailed $exception) {},
4950
]);
5051

5152
$rotation->rotate('file.log');

0 commit comments

Comments
 (0)