Skip to content

Commit ed477f8

Browse files
committed
Update to PHP-CS-Fixer 3.86
1 parent 1ef3887 commit ed477f8

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.php-cs-fixer.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
->setRules([
1515
'@PER-CS' => true,
1616
'align_multiline_comment' => true,
17-
'array_syntax' => true,
1817
'binary_operator_spaces' => true,
1918
'class_attributes_separation' => ['elements' => ['method' => 'one']],
2019
'class_reference_name_casing' => true,
2120
'clean_namespace' => true,
21+
'combine_consecutive_issets' => true,
2222
'combine_consecutive_unsets' => true,
2323
'declare_parentheses' => true,
2424
'integer_literal_case' => true,
@@ -35,24 +35,26 @@
3535
'no_extra_blank_lines' => true,
3636
'no_spaces_around_offset' => true,
3737
'no_superfluous_phpdoc_tags' => true,
38+
'no_trailing_comma_in_singleline' => true,
3839
'no_unneeded_control_parentheses' => true,
3940
'no_unused_imports' => true,
41+
'no_useless_concat_operator' => true,
4042
'no_useless_return' => true,
4143
'no_whitespace_before_comma_in_array' => true,
4244
'object_operator_without_whitespace' => true,
45+
'ordered_class_elements' => ['order' => ['use_trait', 'case', 'constant', 'property', 'method']],
4346
'ordered_imports' => ['sort_algorithm' => 'alpha'],
4447
'phpdoc_indent' => true,
4548
'phpdoc_no_empty_return' => true,
49+
'phpdoc_order' => true,
50+
'phpdoc_param_order' => true,
4651
'phpdoc_single_line_var_spacing' => true,
4752
'return_assignment' => true,
4853
'semicolon_after_instruction' => true,
49-
'single_class_element_per_statement' => true,
50-
'single_space_around_construct' => true,
5154
'space_after_semicolon' => true,
5255
'standardize_not_equals' => true,
5356
'trim_array_spaces' => true,
5457
'type_declaration_spaces' => true,
55-
'types_spaces' => true,
5658
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
5759
])
5860
->setFinder($finder);

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"ext-pdo": "*"
2121
},
2222
"require-dev": {
23-
"friendsofphp/php-cs-fixer": "^3.75",
24-
"phpstan/phpstan": "^2.1.14",
23+
"friendsofphp/php-cs-fixer": "^3.86",
24+
"phpstan/phpstan": "^2.1.22",
2525
"phpunit/phpunit": "^10.5",
26-
"ramsey/uuid": "^4.2.3"
26+
"ramsey/uuid": "^4.9"
2727
},
2828
"autoload": {
2929
"psr-4": {

src/QueryBuilder/Query.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
*/
1313
class Query
1414
{
15-
protected Options $options;
16-
1715
private const OPERATOR_MAP = [
1816
'eq' => '=',
1917
'ne' => '<>',
@@ -27,6 +25,8 @@ class Query
2725
'nn' => 'IS NOT NULL',
2826
];
2927

28+
protected Options $options;
29+
3030
public function __construct(Options $options)
3131
{
3232
$this->options = $options;
@@ -60,8 +60,8 @@ public function escapeIdentifier(string $identifier): string
6060
}
6161

6262
/**
63-
* @throws \Exception if a column filter is empty
6463
* @param WhereClause $columnVals
64+
* @throws \Exception if a column filter is empty
6565
*/
6666
public function buildWhereClause(array $columnVals): SqlParams
6767
{

0 commit comments

Comments
 (0)