parent
6e499ef0b2
commit
36acbd9efb
|
@ -58,7 +58,7 @@ trait RotationTrait {
|
||||||
* @since 14.0.0
|
* @since 14.0.0
|
||||||
*/
|
*/
|
||||||
protected function shouldRotateBySize():bool {
|
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);
|
$filesize = @filesize($this->filePath);
|
||||||
if ($filesize >= (int)$this->maxSize) {
|
if ($filesize >= (int)$this->maxSize) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue