Skip to content
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

Remove un-necessary ecs config #42

Closed
wants to merge 1 commit into from
Closed

Conversation

Roshyo
Copy link

@Roshyo Roshyo commented Aug 19, 2021

First, line 187 does the same but in better due to default config.

Second, it seems to make ecs crash with this error:

A script named run would override a Composer command and has been skipped
> check-style: ecs check
PHP Fatal error:  Uncaught ECSPrefix20210818\Symfony\Component\OptionsResolver\Exception\InvalidOptionsException: Unexpected element type, expected any of "const", "method", "property", "trait_import", got "integer#0". in /home/stephane/nvme/PhpstormProjects/Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php:153
Stack trace:
#0 /Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolver.php(77): PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer::PhpCsFixer\Fixer\ClassNotation\{closure}()
#1 /Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/symfony/options-resolver/OptionsResolver.php(932): PhpCsFixer\FixerConfiguration\FixerConfigurationResolver::PhpCsFixer\FixerConfiguration\{closure}()
#2 /Syl in /home/stephane/nvme/PhpstormProjects/Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php on line 120
Script ecs check handling the check-style event returned with error code 255

image

First, line 187 does the same but in better due to default config.

Second, it seems to make ecs crash with this error: 

```
A script named run would override a Composer command and has been skipped
> check-style: ecs check
PHP Fatal error:  Uncaught ECSPrefix20210818\Symfony\Component\OptionsResolver\Exception\InvalidOptionsException: Unexpected element type, expected any of "const", "method", "property", "trait_import", got "integer#0". in /home/stephane/nvme/PhpstormProjects/Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php:153
Stack trace:
#0 /Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolver.php(77): PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer::PhpCsFixer\Fixer\ClassNotation\{closure}()
SyliusLabs#1 /Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/symfony/options-resolver/OptionsResolver.php(932): PhpCsFixer\FixerConfiguration\FixerConfigurationResolver::PhpCsFixer\FixerConfiguration\{closure}()
SyliusLabs#2 /Syl in /home/stephane/nvme/PhpstormProjects/Sylius/SyliusGiftCardPlugin/vendor/symplify/easy-coding-standard/vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php on line 120
Script ecs check handling the check-style event returned with error code 255

```
@Roshyo Roshyo closed this Aug 19, 2021
@Roshyo
Copy link
Author

Roshyo commented Aug 19, 2021

Duplicated with #40

@Roshyo Roshyo deleted the patch-1 branch August 19, 2021 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant