-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Maintenance][Refactor] Bump plugin to 1.14 #331
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b63f1d1
Bump dependencies
mpysiak 142b315
Bump CI
mpysiak 1d7e3dd
Refactor
mpysiak fec4e60
Change CI do 1.14.x-dev
mpysiak 835038f
revert composer scripts remove
mpysiak 000877e
Fix CI
mpysiak 661274c
Refactor CI
mpysiak 9e7ac8c
update phpstan config and bundles
mpysiak 6a27409
Bring back 1.13 and fix ecs problem
mpysiak 43d7920
Add ecs to builds and fix ecs errors
mpysiak f3b4045
Add upgrade file info
mpysiak 25491b0
Update CI builds
mpysiak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -1,27 +1,52 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Sylius package. | ||
* | ||
* (c) Sylius Sp. z o.o. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\ClassNotation\OrderedTypesFixer; | ||
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer; | ||
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Symplify\EasyCodingStandard\ValueObject\Option; | ||
use PhpCsFixer\Fixer\FunctionNotation\NullableTypeDeclarationForDefaultNullValueFixer; | ||
use PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer; | ||
use SlevomatCodingStandard\Sniffs\Commenting\InlineDocCommentDeclarationSniff; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void | ||
{ | ||
$containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php'); | ||
return static function (ECSConfig $config): void { | ||
$config->import('vendor/sylius-labs/coding-standard/ecs.php'); | ||
|
||
$containerConfigurator->services()->set(HeaderCommentFixer::class)->call('configure', [[ | ||
'location' => 'after_open', | ||
'header' => | ||
'This file is part of the Sylius package. | ||
$config->parallel(); | ||
$config->paths(['src', 'spec']); | ||
$config->skip([ | ||
InlineDocCommentDeclarationSniff::class . '.MissingVariable', | ||
InlineDocCommentDeclarationSniff::class . '.NoAssignment', | ||
VisibilityRequiredFixer::class => ['*Spec.php'], | ||
'**/var/*', | ||
'src/Migrations/*', | ||
]); | ||
$config->ruleWithConfiguration(PhpdocSeparationFixer::class, ['groups' => [['Given', 'When', 'Then']]]); | ||
$config->ruleWithConfiguration(OrderedTypesFixer::class, ['null_adjustment' => 'always_last']); | ||
$config->ruleWithConfiguration(NullableTypeDeclarationForDefaultNullValueFixer::class, ['use_nullable_type_declaration' => true]); | ||
$config->ruleWithConfiguration( | ||
HeaderCommentFixer::class, | ||
[ | ||
'location' => 'after_open', | ||
'comment_type' => HeaderCommentFixer::HEADER_COMMENT, | ||
'header' => <<<TEXT | ||
This file is part of the Sylius package. | ||
|
||
(c) Sylius Sp. z o.o. | ||
|
||
For the full copyright and license information, please view the LICENSE | ||
file that was distributed with this source code.', | ||
]]); | ||
|
||
$containerConfigurator->parameters()->set(Option::SKIP, [ | ||
VisibilityRequiredFixer::class => ['*Spec.php'], | ||
'**/var/*', | ||
]); | ||
file that was distributed with this source code. | ||
TEXT | ||
] | ||
); | ||
}; |
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 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the single builds for PHP 8.1 and 8.2 should stay