Skip to content

Commit 850c741

Browse files
committed
Fix: Use type_declaration_spaces instead of deprecated function_typehint_space fixer
1 parent efa7000 commit 850c741

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
'fully_qualified_strict_types' => true,
9595
'function_declaration' => true,
9696
'function_to_constant' => true,
97-
'function_typehint_space' => true,
9897
'global_namespace_import' => [
9998
'import_classes' => true,
10099
'import_constants' => true,
@@ -300,6 +299,11 @@
300299
]
301300
],
302301
'trim_array_spaces' => true,
302+
'type_declaration_spaces' => [
303+
'elements' => [
304+
'function',
305+
],
306+
],
303307
'types_spaces' => [
304308
'space' => 'none',
305309
],

0 commit comments

Comments
 (0)