Skip to content

Commit 6ddaf0d

Browse files
committed
cs: upd rules
1 parent 3331654 commit 6ddaf0d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
return (new PhpCsFixer\Config())
88
->setRules([
99
'@Symfony' => true,
10+
'@Symfony:risky' => true,
11+
'@PHP80Migration:risky' => true,
1012
'@PHP80Migration' => true,
1113

1214
'combine_consecutive_issets' => true,
@@ -22,6 +24,8 @@
2224
'phpdoc_order' => true,
2325
'strict_comparison' => true,
2426
'combine_nested_dirname' => true,
27+
'use_arrow_functions' => false,
28+
'declare_strict_types' => false,
2529
])
2630
->setRiskyAllowed(true)
2731
->setFinder($finder)

src/HTMLValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function validateUri(string $uri): Response
113113
*/
114114
public function validateFile(string $file): Response
115115
{
116-
$f = @\fopen($file, 'rb');
116+
$f = @\fopen($file, 'r');
117117
if (false === $f) {
118118
throw new Exception(\error_get_last()['message']);
119119
}

0 commit comments

Comments
 (0)