Skip to content

Commit 176fc9a

Browse files
Updated to allow for php 8
1 parent ef1eed9 commit 176fc9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LocalFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static function split( string $pathToSourceFile,
119119
$currentChunkLineCount++;
120120

121121
if ( $currentChunkLineCount >= $linesPerFile ):
122-
@ftruncate( $newSplitFileHandle, -1 );
122+
//@ftruncate( $newSplitFileHandle, -1 );
123123
@fclose( $newSplitFileHandle );
124124
$currentChunkLineCount = 0;
125125
endif;
@@ -131,7 +131,7 @@ public static function split( string $pathToSourceFile,
131131

132132
// Remove the trailing newline.
133133
if ( isset( $newSplitFileHandle ) ):
134-
@ftruncate( $newSplitFileHandle, -1 );
134+
//@ftruncate( $newSplitFileHandle, -1 );
135135
@fclose( $newSplitFileHandle ); // Just in case.
136136
endif;
137137

0 commit comments

Comments
 (0)