-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor #297 Modernize the codebase (sstok)
This PR was merged into the main branch. labels: bc-break Discussion ---------- | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | no | Tickets | | License | MIT - Drop support for OEL PHP versions - Drop support for Symfony < 4.4 - Drop support for older Elasticsearch versions. And add support for newer versions - Drop usage of the ElasticaBundle - Upgrade the quality tools Commits ------- 6e8451e Bump minimum PHP version to 7.4 afae894 [Elasticsearch] Upgrade to Elastica 5 cf5d060 Allow Money v4.0 32e9b58 Drop support for Symfony 4 cd27c12 Upgrade PHPStan (with baseline) 0ccb9e7 Upgrade Php-cs-fixer 62adba1 Enable PHPStan annotation for pr's dc79685 Fix PHPUnit deprecations
- Loading branch information
Showing
63 changed files
with
1,079 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
|
||
$header = <<<EOF | ||
This file is part of the RollerworksSearch package. | ||
(c) Sebastiaan Stok <[email protected]> | ||
This source file is subject to the MIT license that is bundled | ||
with this source code in the file LICENSE. | ||
EOF; | ||
|
||
/** @var \Symfony\Component\Finder\Finder $finder */ | ||
$finder = PhpCsFixer\Finder::create(); | ||
$finder | ||
->in([__DIR__.'/lib']) | ||
->notPath('Symfony/SearchBundle/Tests/Functional/Application/var') | ||
->exclude('Fixtures') | ||
; | ||
|
||
$config = new PhpCsFixer\Config(); | ||
$config | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PhpCsFixer' => true, | ||
'@PhpCsFixer:risky' => true, | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'@PHP74Migration' => true, | ||
'@PHP74Migration:risky' => true, | ||
'@PHPUnit84Migration:risky' => true, | ||
'@DoctrineAnnotation' => true, | ||
'blank_line_before_statement' => [ | ||
'statements' => [ | ||
'break', | ||
'case', | ||
'continue', | ||
'declare', | ||
'default', | ||
'do', | ||
'exit', | ||
'for', | ||
'foreach', | ||
'goto', | ||
'if', | ||
'include', | ||
'include_once', | ||
'require', | ||
'require_once', | ||
'return', | ||
'switch', | ||
'throw', | ||
'try', | ||
'while', | ||
], | ||
], | ||
'comment_to_phpdoc' => ['ignored_tags' => ['codeCoverageIgnoreStart', 'codeCoverageIgnoreEnd']], | ||
'concat_space' => ['spacing' => 'one'], | ||
'doctrine_annotation_array_assignment' => ['operator' => '='], | ||
'general_phpdoc_annotation_remove' => ['annotations' => [/*'author', */'since', 'package', 'subpackage']], | ||
'header_comment' => ['header' => $header], | ||
'list_syntax' => ['syntax' => 'short'], | ||
'mb_str_functions' => true, | ||
'method_argument_space' => ['on_multiline' => 'ignore'], | ||
'method_chaining_indentation' => false, | ||
'no_extra_blank_lines' => ['tokens' => ['extra', 'use_trait']], | ||
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => true], | ||
'not_operator_with_successor_space' => true, | ||
'ordered_class_elements' => false, | ||
'ordered_imports' => true, | ||
'php_unit_method_casing' => ['case' => 'snake_case'], | ||
'php_unit_strict' => false, | ||
'php_unit_test_annotation' => ['style' => 'annotation'], | ||
'php_unit_test_class_requires_covers' => false, | ||
'phpdoc_to_comment' => false, | ||
'phpdoc_var_without_name' => false, | ||
'self_static_accessor' => true, | ||
'single_line_throw' => false, | ||
'static_lambda' => true, | ||
'strict_comparison' => false, | ||
'yoda_style' => ['equal' => false, 'identical' => false], | ||
]) | ||
->setFinder($finder); | ||
|
||
return $config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.