Skip to content

Commit 9be9b8a

Browse files
committed
fix: add replace to composer.json and fix code style
1 parent e201543 commit 9be9b8a

File tree

8 files changed

+40
-281
lines changed

8 files changed

+40
-281
lines changed

.php-cs-fixer.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

.php-cs-fixer.php

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,17 @@
2525
/** symfony set @see \PhpCsFixer\RuleSet\Sets\SymfonySet */
2626
'@Symfony' => true,
2727
/** symfony set @see \PhpCsFixer\RuleSet\Sets\SymfonyRiskySet */
28-
'@Symfony:risky' => true,
29-
'@PhpCsFixer:risky' => true,
30-
'@PHP83Migration' => true,
31-
'@DoctrineAnnotation' => true,
32-
// OEG Set:
28+
'@Symfony:risky' => true,
29+
'@PhpCsFixer:risky' => true,
30+
'@PHP83Migration' => true,
31+
'@DoctrineAnnotation' => true,
3332
'binary_operator_spaces' => [
3433
'default' => 'align',
3534
'operators' => [
3635
'??' => 'single_space',
3736
],
3837
],
3938
'concat_space' => ['spacing' => 'one'],
40-
4139
'encoding' => true,
4240
'blank_lines_before_namespace' => true,
4341
'blank_line_after_opening_tag' => false, // psr 12 = true
@@ -53,17 +51,6 @@
5351
'fopen_flags' => false,
5452
'combine_nested_dirname' => true,
5553

56-
'ordered_imports' => [
57-
'imports_order' => [
58-
// symfony order: Class Function Const
59-
// OEG:
60-
'const',
61-
'class',
62-
'function',
63-
],
64-
'sort_algorithm' => 'alpha',
65-
],
66-
6754
'global_namespace_import' => [
6855
'import_classes' => true,
6956
'import_functions' => true,
@@ -74,8 +61,6 @@
7461
'phpdoc_to_comment' => false,
7562
'nullable_type_declaration_for_default_null_value' => true,
7663
'no_superfluous_phpdoc_tags' => false, // symfony -> true löscht aber mixed return was phpstan aggro macht
77-
// prevent mega diff
78-
'blank_line_between_import_groups' => false, // PSR 12 = true
7964

8065
// new stuff that fails to much:
8166
'ordered_types' => [

composer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
"roave/security-advisories": "dev-latest",
3535
"symfony/var-dumper": "7.3.1"
3636
},
37+
"replace": {
38+
"symfony/polyfill-php80": "*",
39+
"symfony/polyfill-php81": "*",
40+
"symfony/polyfill-php82": "*",
41+
"symfony/polyfill-php83": "*"
42+
},
3743
"autoload": {
3844
"psr-4": {
3945
"WebProject\\DockerHostsFileSync\\": "src/"
@@ -51,6 +57,9 @@
5157
"allow-plugins": {
5258
"php-http/discovery": true,
5359
"symfony/runtime": true
60+
},
61+
"platform": {
62+
"php": "8.3"
5463
}
5564
},
5665
"scripts": {

0 commit comments

Comments
 (0)