mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 00:56:08 +02:00
Move to strict mode and fix tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
@@ -134,7 +134,8 @@ class RotatingFileHandler extends StreamHandler
|
||||
if (is_writable($file)) {
|
||||
// suppress errors here as unlink() might fail if two processes
|
||||
// are cleaning up/rotating at the same time
|
||||
set_error_handler(function ($errno, $errstr, $errfile, $errline) {});
|
||||
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
|
||||
});
|
||||
unlink($file);
|
||||
restore_error_handler();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user