fix: phpstan level=3

This commit is contained in:
origami11@yandex.ru 2024-01-22 19:56:45 +03:00
parent 277a297b8a
commit 4fc2e2ac7d
16 changed files with 69 additions and 54 deletions

View file

@ -6,6 +6,7 @@ if (!function_exists('str_getcsv')) {
function str_getcsv($input, $delimiter = ",", $enclosure = '"', $escape = "\\") {
$fiveMBs = 1024;
$fp = fopen("php://temp/maxmemory:$fiveMBs", 'r+');
$data = '';
if (is_resource($fp)) {
fputs($fp, $input);
rewind($fp);