Skip to content

Commit 4b60194

Browse files
committed
Update dependencies, migrate to pest v3
1 parent 0af3e35 commit 4b60194

File tree

4 files changed

+2179
-992
lines changed

4 files changed

+2179
-992
lines changed

.php-cs-fixer.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,25 @@
1010
->setRules([
1111
'@PhpCsFixer' => true,
1212
'@PhpCsFixer:risky' => true,
13-
'@PHP80Migration:risky' => true,
13+
'@PHP80Migration:risky' => true,
14+
'@PHP84Migration' => true,
1415
'@PSR12' => true,
1516
'@PSR12:risky' => true,
1617
'@Symfony' => true,
17-
'@Symfony:risky' => true,
18-
'braces' => ['allow_single_line_closure' => true, 'position_after_functions_and_oop_constructs' => 'same'],
18+
'@Symfony:risky' => true,
19+
'braces_position' => ['classes_opening_brace' => 'same_line', 'functions_opening_brace' => 'same_line'],
1920
'concat_space' => ['spacing' => 'one'],
21+
'control_structure_continuation_position' => ['position' => 'same_line'],
2022
'declare_strict_types' => false,
23+
'final_internal_class' => false,
2124
'mb_str_functions' => true,
25+
'nullable_type_declaration_for_default_null_value' => true,
2226
'operator_linebreak' => true,
27+
'phpdoc_to_comment' => ['allow_before_return_statement' => true, 'ignored_tags' => ['var', 'phpstan-ignore', 'phpstan-ignore-next-line', 'psalm-suppress']],
28+
'phpdoc_align' => false,
29+
'single_line_empty_body' => true,
30+
'static_lambda' => false,
31+
'string_implicit_backslashes' => ['double_quoted' => 'escape', 'single_quoted' => 'ignore', 'heredoc' => 'escape'],
2332
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
2433
])
2534
->setFinder(PhpCsFixer\Finder::create()

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
}
1111
],
1212
"require": {
13-
"google/protobuf": "^3.19",
13+
"php": "^8.0",
1414
"ext-json": "*",
15-
"php": "^8.0"
15+
"google/protobuf": "^v4"
1616
},
1717
"autoload": {
1818
"psr-4": {
@@ -23,8 +23,8 @@
2323
},
2424
"require-dev": {
2525
"friendsofphp/php-cs-fixer": "^3.2",
26-
"pestphp/pest": "^1.20",
27-
"phpstan/phpstan": "^1.9"
26+
"pestphp/pest": "^v3",
27+
"phpstan/phpstan": "^2.0"
2828
},
2929
"scripts": {
3030
"lint": "@fix --dry-run",

0 commit comments

Comments
 (0)