Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
dartcafe 2021-05-19 15:46:01 +02:00
parent 7c77e74314
commit 40929cba79
No known key found for this signature in database
GPG Key ID: CCE73CEF3035D3C8
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 && file_exist($this->filePath)) {
if ((int)$this->maxSize > 0 && file_exists($this->filePath)) {
$filesize = @filesize($this->filePath);
if ($filesize >= (int)$this->maxSize) {
return true;