fix tests and replace file_exists

This commit is contained in:
Dennis Eichhorn 2020-10-08 15:12:24 +02:00
parent a8d4c09950
commit d4168a4ef5

View File

@ -94,7 +94,7 @@ final class ApiController extends Controller
$rnd = \mt_rand();
++$i;
} while (\file_exists($path . '/' . $filename) && $i < 10000);
} while (\is_file($path . '/' . $filename) && $i < 10000);
// protection against infinite loop
if ($i >= 10000) {