Skip to content

Commit

Permalink
Update helpers.php
Browse files Browse the repository at this point in the history
- Passing null to non-nullable internal function parameters is deprecated in PHP 8.1
  • Loading branch information
JackieDo authored Mar 14, 2022
1 parent 9c74131 commit e807322
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@
* attached. Upon failure, file_lines() returns false.
*/
function file_lines($filename, $flags = 0) {
$autoDetectEndings = ini_get('auto_detect_line_endings');

ini_set('auto_detect_line_endings', '1');

$lines = file($filename, $flags);

ini_set('auto_detect_line_endings', $autoDetectEndings);

return $lines;
return file($filename, $flags);
}
}

Expand Down

0 comments on commit e807322

Please sign in to comment.