cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 12:09:24 +01:00
parent 6ce511889f
commit 579c349e28
22 changed files with 29 additions and 15 deletions

View File

@@ -44,6 +44,8 @@ use function get_class;
use function in_array;
use function is_array;
use function json_decode;
use const JSON_PRETTY_PRINT;
use const LC_TIME;
final class ImportPeopleFromCSVCommand extends Command
{
@@ -771,7 +773,7 @@ final class ImportPeopleFromCSVCommand extends Command
. 'have the right to read it.');
}
$resource = fopen($filename, 'r');
$resource = fopen($filename, 'rb');
if (false == $resource) {
throw new RuntimeException("The file '{$filename}' could not be opened.");