Skip to content

Commit

Permalink
enh: Set type as nullable when default value is null (needed for PHP …
Browse files Browse the repository at this point in the history
…8.4)

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Jan 30, 2024
1 parent d9cd7a3 commit 1dedda4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function getRules() : array {
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_unused_imports' => true,
'nullable_type_declaration_for_default_null_value' => true,
'ordered_imports' => [
'imports_order' => ['class', 'function', 'const'],
'sort_algorithm' => 'alpha'
Expand Down

0 comments on commit 1dedda4

Please sign in to comment.