Skip to content

Commit

Permalink
feat: use ordered_types in @PhpCsFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Oct 6, 2023
1 parent 84dd90e commit 8e02bc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Linter/TokenizerLinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function lintSource(string $source): LintingResultInterface
Tokens::fromCode($source);

return new TokenizerLintingResult();
} catch (\ParseError|\CompileError $e) {
} catch (\CompileError|\ParseError $e) {
return new TokenizerLintingResult($e);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Sets/PhpCsFixerSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function getRules(): array
'no_useless_return' => true,
'nullable_type_declaration_for_default_null_value' => false,
'ordered_class_elements' => true,
'ordered_types' => true,
'php_unit_internal_class' => true,
'php_unit_test_class_requires_covers' => true,
'phpdoc_add_missing_param_annotation' => true,
Expand Down

0 comments on commit 8e02bc0

Please sign in to comment.