Skip to content

Commit 7199d5a

Browse files
committed
update to php-cs-fixer v3.92
1 parent af6293f commit 7199d5a

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require": {
1818
"php": "^8.1",
1919
"ext-tokenizer": "*",
20-
"friendsofphp/php-cs-fixer": "^3.84"
20+
"friendsofphp/php-cs-fixer": "^3.92"
2121
},
2222
"require-dev": {
2323
"nexusphp/tachycardia": "^2.1",

src/Ruleset/ConfigurableAllowedUnsupportedPhpVersionRulesetInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface ConfigurableAllowedUnsupportedPhpVersionRulesetInterface extends Rules
2121
/**
2222
* @internal
2323
*/
24-
public const PHP_CS_FIXER_MAX_SUPPORTED_PHP_VERSION_ID = 8_04_99;
24+
public const PHP_CS_FIXER_MAX_SUPPORTED_PHP_VERSION_ID = 8_05_99;
2525

2626
/**
2727
* Returns whether this ruleset allows unsupported PHP versions.

src/Ruleset/Nexus81.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ public function __construct()
443443
'php_unit_test_case_static_method_calls' => [
444444
'call_type' => 'self',
445445
'methods' => [],
446+
'target' => '10.0',
446447
],
447448
'php_unit_test_class_requires_covers' => false,
448449
'phpdoc_add_missing_param_annotation' => ['only_untyped' => true],
@@ -702,6 +703,7 @@ public function __construct()
702703
],
703704
'string_length_to_empty' => true,
704705
'string_line_ending' => true,
706+
'stringable_for_to_string' => false,
705707
'switch_case_semicolon_to_colon' => true,
706708
'switch_case_space' => true,
707709
'switch_continue_to_break' => true,

src/Ruleset/Nexus82.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ public function __construct()
2626
$this->rules = [
2727
...(new Nexus81())->getRules(),
2828
'phpdoc_readonly_class_comment_to_keyword' => true,
29+
'php_unit_test_case_static_method_calls' => [
30+
'call_type' => 'self',
31+
'methods' => [],
32+
'target' => '11.0',
33+
],
2934
];
3035
$this->requiredPHPVersion = 8_02_00;
3136
$this->autoActivateIsRiskyAllowed = true;

src/Ruleset/Nexus83.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ final class Nexus83 extends AbstractRuleset
2323
public function __construct()
2424
{
2525
$this->name = 'Nexus for PHP 8.3';
26-
$this->rules = (new Nexus82())->getRules();
26+
$this->rules = [
27+
...(new Nexus82())->getRules(),
28+
'phpdoc_readonly_class_comment_to_keyword' => true,
29+
'php_unit_test_case_static_method_calls' => [
30+
'call_type' => 'self',
31+
'methods' => [],
32+
'target' => 'newest',
33+
],
34+
];
2735
$this->requiredPHPVersion = 8_03_00;
2836
$this->autoActivateIsRiskyAllowed = true;
2937
}

0 commit comments

Comments
 (0)