Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
dartcafe 2021-05-19 13:55:29 +02:00 committed by backportbot[bot]
parent b13dbbb9d7
commit 6e499ef0b2
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ trait RotationTrait {
* @since 14.0.0
*/
protected function shouldRotateBySize():bool {
if ((int)$this->maxSize > 0) {
if ((int)$this->maxSize > 0 && file_exist($this->filePath)) {
$filesize = @filesize($this->filePath);
if ($filesize >= (int)$this->maxSize) {
return true;